diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-17 15:23:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-17 15:23:57 +0000 |
commit | 98353d5eef5165351ce9e3d0e20778aa8bdcac5b (patch) | |
tree | 7edd7f9022a7404a8d4d07e7e653d97204075965 /src/include/gnunet_crypto_lib.h | |
parent | d5b2e929fb806baf290119b5537b25fc32262a0a (diff) | |
download | gnunet-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.h | 10 |
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 | */ |
891 | struct GNUNET_CRYPTO_RsaPrivateKey * | 892 | struct GNUNET_CRYPTO_RsaPrivateKey * |
892 | GNUNET_CRYPTO_rsa_decode_key (const char *buf, uint16_t len); | 893 | GNUNET_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 | */ |
966 | void | 967 | void |
967 | GNUNET_CRYPTO_setup_hostkey (const char *cfg_name); | 968 | GNUNET_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 | */ |
977 | struct GNUNET_CRYPTO_RsaPrivateKey * | 978 | struct GNUNET_CRYPTO_RsaPrivateKey * |
978 | GNUNET_CRYPTO_rsa_key_create_from_hash (const struct GNUNET_HashCode * hc); | 979 | GNUNET_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 | */ |
985 | void | 987 | void |
986 | GNUNET_CRYPTO_rsa_key_free (struct GNUNET_CRYPTO_RsaPrivateKey *hostkey); | 988 | GNUNET_CRYPTO_rsa_key_free (struct GNUNET_CRYPTO_RsaPrivateKey *key); |
987 | 989 | ||
988 | 990 | ||
989 | /** | 991 | /** |