diff options
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 16 | ||||
-rw-r--r-- | src/util/crypto_rsa.c | 9 |
2 files changed, 13 insertions, 12 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 6f777a562..38ef966a9 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -1644,8 +1644,7 @@ GNUNET_CRYPTO_rsa_signature_free (struct GNUNET_CRYPTO_rsa_Signature *sig); | |||
1644 | 1644 | ||
1645 | 1645 | ||
1646 | /** | 1646 | /** |
1647 | * Encode the given signature in a format suitable for | 1647 | * Encode the given signature in a format suitable for storing it into a file. |
1648 | * storing it into a file. | ||
1649 | * | 1648 | * |
1650 | * @param sig the signature | 1649 | * @param sig the signature |
1651 | * @param[out] buffer set to a buffer with the encoded key | 1650 | * @param[out] buffer set to a buffer with the encoded key |
@@ -1657,8 +1656,8 @@ GNUNET_CRYPTO_rsa_signature_encode (const struct GNUNET_CRYPTO_rsa_Signature *si | |||
1657 | 1656 | ||
1658 | 1657 | ||
1659 | /** | 1658 | /** |
1660 | * Decode the signature from the data-format back | 1659 | * Decode the signature from the data-format back to the "normal", internal |
1661 | * to the "normal", internal format. | 1660 | * format. |
1662 | * | 1661 | * |
1663 | * @param buf the buffer where the public key data is stored | 1662 | * @param buf the buffer where the public key data is stored |
1664 | * @param len the length of the data in @a buf | 1663 | * @param len the length of the data in @a buf |
@@ -1670,9 +1669,9 @@ GNUNET_CRYPTO_rsa_signature_decode (const char *buf, | |||
1670 | 1669 | ||
1671 | 1670 | ||
1672 | /** | 1671 | /** |
1673 | * Unblind a signature made on blinding signature purpose. The signature | 1672 | * Unblind a blind-signed signature. The signature should have been generated |
1674 | * purpose should have been generated with #GNUNET_CRYPTO_rsa_sign() using | 1673 | * with #GNUNET_CRYPTO_rsa_sign() using a hash that was blinded with |
1675 | * a message that was generated with #GNUNET_CRYPTO_rsa_blind(). | 1674 | * #GNUNET_CRYPTO_rsa_blind(). |
1676 | * | 1675 | * |
1677 | * @param sig the signature made on the blinded signature purpose | 1676 | * @param sig the signature made on the blinded signature purpose |
1678 | * @param bkey the blinding key used to blind the signature purpose | 1677 | * @param bkey the blinding key used to blind the signature purpose |
@@ -1686,7 +1685,8 @@ GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_rsa_Signature *sig, | |||
1686 | 1685 | ||
1687 | 1686 | ||
1688 | /** | 1687 | /** |
1689 | * Verify signature with the given hash. | 1688 | * Verify whether the given hash corresponds to the given signature and the |
1689 | * signature is valid with respect to the given public key. | ||
1690 | * | 1690 | * |
1691 | * @param hash the message to verify to match the @a sig | 1691 | * @param hash the message to verify to match the @a sig |
1692 | * @param sig signature that is being validated | 1692 | * @param sig signature that is being validated |
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index ba8639365..7e64515e2 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -690,9 +690,9 @@ GNUNET_CRYPTO_rsa_signature_decode (const char *buf, | |||
690 | 690 | ||
691 | 691 | ||
692 | /** | 692 | /** |
693 | * Unblind a signature made on blinding signature purpose. The signature | 693 | * Unblind a blind-signed signature. The signature should have been generated |
694 | * purpose should have been generated with #GNUNET_CRYPTO_rsa_sign() using | 694 | * with #GNUNET_CRYPTO_rsa_sign() using a hash that was blinded with |
695 | * a message that was generated with #GNUNET_CRYPTO_rsa_blind(). | 695 | * #GNUNET_CRYPTO_rsa_blind(). |
696 | * | 696 | * |
697 | * @param sig the signature made on the blinded signature purpose | 697 | * @param sig the signature made on the blinded signature purpose |
698 | * @param bkey the blinding key used to blind the signature purpose | 698 | * @param bkey the blinding key used to blind the signature purpose |
@@ -758,7 +758,8 @@ GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_rsa_Signature *sig, | |||
758 | 758 | ||
759 | 759 | ||
760 | /** | 760 | /** |
761 | * Verify signature with the given hash. | 761 | * Verify whether the given hash corresponds to the given signature and the |
762 | * signature is valid with respect to the given public key. | ||
762 | * | 763 | * |
763 | * @param hash hash of the message to verify to match the @a sig | 764 | * @param hash hash of the message to verify to match the @a sig |
764 | * @param sig signature that is being validated | 765 | * @param sig signature that is being validated |