aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-17 15:23:57 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-17 15:23:57 +0000
commit98353d5eef5165351ce9e3d0e20778aa8bdcac5b (patch)
tree7edd7f9022a7404a8d4d07e7e653d97204075965 /src/include/gnunet_crypto_lib.h
parentd5b2e929fb806baf290119b5537b25fc32262a0a (diff)
downloadgnunet-98353d5eef5165351ce9e3d0e20778aa8bdcac5b.tar.gz
gnunet-98353d5eef5165351ce9e3d0e20778aa8bdcac5b.zip
-more rsa refactoring
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 57fcf8bc0..f73c1ae76 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -887,6 +887,7 @@ GNUNET_CRYPTO_rsa_encode_key (const struct GNUNET_CRYPTO_RsaPrivateKey *hostkey)
887 * 887 *
888 * @param buf the buffer where the private key data is stored 888 * @param buf the buffer where the private key data is stored
889 * @param len the length of the data in 'buffer' 889 * @param len the length of the data in 'buffer'
890 * @return NULL on error
890 */ 891 */
891struct GNUNET_CRYPTO_RsaPrivateKey * 892struct GNUNET_CRYPTO_RsaPrivateKey *
892GNUNET_CRYPTO_rsa_decode_key (const char *buf, uint16_t len); 893GNUNET_CRYPTO_rsa_decode_key (const char *buf, uint16_t len);
@@ -964,7 +965,7 @@ GNUNET_CRYPTO_rsa_key_create_stop (struct GNUNET_CRYPTO_RsaKeyGenerationContext
964 * @param cfg_name name of the configuration file to use 965 * @param cfg_name name of the configuration file to use
965 */ 966 */
966void 967void
967GNUNET_CRYPTO_setup_hostkey (const char *cfg_name); 968GNUNET_CRYPTO_rsa_setup_hostkey (const char *cfg_name);
968 969
969 970
970/** 971/**
@@ -975,15 +976,16 @@ GNUNET_CRYPTO_setup_hostkey (const char *cfg_name);
975 * @return some private key purely dependent on input 976 * @return some private key purely dependent on input
976 */ 977 */
977struct GNUNET_CRYPTO_RsaPrivateKey * 978struct GNUNET_CRYPTO_RsaPrivateKey *
978GNUNET_CRYPTO_rsa_key_create_from_hash (const struct GNUNET_HashCode * hc); 979GNUNET_CRYPTO_rsa_key_create_from_hash (const struct GNUNET_HashCode *hc);
979 980
980 981
981/** 982/**
982 * Free memory occupied by the private key. 983 * Free memory occupied by the private key.
983 * @param hostkey pointer to the memory to free 984 *
985 * @param key pointer to the memory to free
984 */ 986 */
985void 987void
986GNUNET_CRYPTO_rsa_key_free (struct GNUNET_CRYPTO_RsaPrivateKey *hostkey); 988GNUNET_CRYPTO_rsa_key_free (struct GNUNET_CRYPTO_RsaPrivateKey *key);
987 989
988 990
989/** 991/**