Updated global symbols for FDH
authorJeff Burdges <burdges@gnunet.org>
Mon, 21 Mar 2016 14:01:36 +0000 (14:01 +0000)
committerJeff Burdges <burdges@gnunet.org>
Mon, 21 Mar 2016 14:01:36 +0000 (14:01 +0000)
src/include/gnunet_crypto_lib.h

index d104318e3392498967a34f7307271a702488a05f..861bff5657c7e65c0352a837d22c1a2ddeb8b95c 100644 (file)
@@ -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);
 
 
 /**