aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-03-03 01:57:04 +0000
committerLRN <lrn1986@gmail.com>2013-03-03 01:57:04 +0000
commit63346db616d6478416ec5686746a7818acf81ed6 (patch)
treee852f16fb85560b97986b87db09f966f2455664e /src/include/gnunet_crypto_lib.h
parent9d1521268727d41c5c9ef30d3568125d6f0ac379 (diff)
downloadgnunet-63346db616d6478416ec5686746a7818acf81ed6.tar.gz
gnunet-63346db616d6478416ec5686746a7818acf81ed6.zip
Implement and use GNUNET_CRYPTO_rsa_get_public_key_hash
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 99d4ac58f..8c7f31010 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1081,6 +1081,17 @@ GNUNET_CRYPTO_rsa_key_get_public (const struct GNUNET_CRYPTO_RsaPrivateKey
1081 1081
1082 1082
1083/** 1083/**
1084 * Get hash of the public key that corresponds to a private key.
1085 *
1086 * @param key RSA private key
1087 * @param id buffer for hash of the public key
1088 */
1089void
1090GNUNET_CRYPTO_rsa_get_public_key_hash (struct GNUNET_CRYPTO_RsaPrivateKey *key,
1091 struct GNUNET_HashCode *id);
1092
1093
1094/**
1084 * Encrypt a block with the public key of another host that uses the 1095 * Encrypt a block with the public key of another host that uses the
1085 * same cyper. 1096 * same cyper.
1086 * 1097 *