aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorJeff Burdges <burdges@gnunet.org>2016-03-21 14:01:36 +0000
committerJeff Burdges <burdges@gnunet.org>2016-03-21 14:01:36 +0000
commit3eef52849bc39c38aa8325e45a4153dc80b097a3 (patch)
treeb09f42373d3f9c77503b21d53cd7982aca9fd63b /src/include/gnunet_crypto_lib.h
parent1733de7305720882b8745e82b51b6ff47c10099e (diff)
downloadgnunet-3eef52849bc39c38aa8325e45a4153dc80b097a3.tar.gz
gnunet-3eef52849bc39c38aa8325e45a4153dc80b097a3.zip
Updated global symbols for FDH
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h21
1 files 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,
2037 2037
2038 2038
2039/** 2039/**
2040 * Sign the given message. 2040 * Sign a blinded value, which must be a full domain hash of a message.
2041 * 2041 *
2042 * @param key private key to use for the signing 2042 * @param key private key to use for the signing
2043 * @param msg the (blinded) message to sign 2043 * @param msg the (blinded) message to sign
@@ -2045,9 +2045,22 @@ GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash,
2045 * @return NULL on error, signature on success 2045 * @return NULL on error, signature on success
2046 */ 2046 */
2047struct GNUNET_CRYPTO_RsaSignature * 2047struct GNUNET_CRYPTO_RsaSignature *
2048GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key, 2048GNUNET_CRYPTO_rsa_sign_blinded (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
2049 const void *msg, 2049 const void *msg,
2050 size_t msg_len); 2050 size_t msg_len);
2051
2052
2053/**
2054 * Create and sign a full domain hash of a message.
2055 *
2056 * @param key private key to use for the signing
2057 * @param msg the (blinded) message to sign
2058 * @param msg_len number of bytes in @a msg to sign
2059 * @return NULL on error, signature on success
2060 */
2061struct GNUNET_CRYPTO_RsaSignature *
2062GNUNET_CRYPTO_rsa_sign_fdh (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
2063 const struct GNUNET_HashCode *hash);
2051 2064
2052 2065
2053/** 2066/**