[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36946 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36946 - gnunet/src/include |
Date: |
Mon, 21 Mar 2016 15:01:36 +0100 |
Author: burdges
Date: 2016-03-21 15:01:36 +0100 (Mon, 21 Mar 2016)
New Revision: 36946
Modified:
gnunet/src/include/gnunet_crypto_lib.h
Log:
Updated global symbols for FDH
Modified: gnunet/src/include/gnunet_crypto_lib.h
===================================================================
--- gnunet/src/include/gnunet_crypto_lib.h 2016-03-21 13:41:12 UTC (rev
36945)
+++ gnunet/src/include/gnunet_crypto_lib.h 2016-03-21 14:01:36 UTC (rev
36946)
@@ -2037,7 +2037,7 @@
/**
- * 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,12 +2045,25 @@
* @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);
+
+
+/**
* Free memory occupied by signature.
*
* @param sig memory to free
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36946 - gnunet/src/include,
gnunet <=