From 3eef52849bc39c38aa8325e45a4153dc80b097a3 Mon Sep 17 00:00:00 2001 From: Jeff Burdges Date: Mon, 21 Mar 2016 14:01:36 +0000 Subject: [PATCH] Updated global symbols for FDH --- src/include/gnunet_crypto_lib.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index d104318e3..861bff565 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h @@ -2037,7 +2037,7 @@ GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, /** - * Sign the given message. + * Sign a blinded value, which must be a full domain hash of a message. * * @param key private key to use for the signing * @param msg the (blinded) message to sign @@ -2045,9 +2045,22 @@ GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, * @return NULL on error, signature on success */ struct GNUNET_CRYPTO_RsaSignature * -GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key, - const void *msg, - size_t msg_len); +GNUNET_CRYPTO_rsa_sign_blinded (const struct GNUNET_CRYPTO_RsaPrivateKey *key, + const void *msg, + size_t msg_len); + + +/** + * Create and sign a full domain hash of a message. + * + * @param key private key to use for the signing + * @param msg the (blinded) message to sign + * @param msg_len number of bytes in @a msg to sign + * @return NULL on error, signature on success + */ +struct GNUNET_CRYPTO_RsaSignature * +GNUNET_CRYPTO_rsa_sign_fdh (const struct GNUNET_CRYPTO_RsaPrivateKey *key, + const struct GNUNET_HashCode *hash); /** -- 2.25.1