aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-19 07:57:02 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-19 07:57:02 +0000
commiteb622a145a0018907ff79d1b332482c7a3ebb8c3 (patch)
treeb5841be415d0cfcc5b72bffe1ee9c27b133413c0 /src/include/gnunet_crypto_lib.h
parente8f7afdcd0b0ac78001e19a85f45f3a09288d759 (diff)
downloadgnunet-eb622a145a0018907ff79d1b332482c7a3ebb8c3.tar.gz
gnunet-eb622a145a0018907ff79d1b332482c7a3ebb8c3.zip
-fixes
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 879b1cae2..33842fc27 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -895,12 +895,12 @@ GNUNET_CRYPTO_rsa_public_key_from_string (const char *enc,
895/** 895/**
896 * Encode the private key in a format suitable for 896 * Encode the private key in a format suitable for
897 * storing it into a file. 897 * storing it into a file.
898 * @returns encoding of the private key. 898 * @return encoding of the private key
899 * The first 4 bytes give the size of the array, as usual.
900 */ 899 */
901struct GNUNET_CRYPTO_RsaPrivateKeyBinaryEncoded * 900struct GNUNET_CRYPTO_RsaPrivateKeyBinaryEncoded *
902GNUNET_CRYPTO_rsa_encode_key (const struct GNUNET_CRYPTO_RsaPrivateKey *hostkey); 901GNUNET_CRYPTO_rsa_encode_key (const struct GNUNET_CRYPTO_RsaPrivateKey *hostkey);
903 902
903
904/** 904/**
905 * Decode the private key from the data-format back 905 * Decode the private key from the data-format back
906 * to the "normal", internal format. 906 * to the "normal", internal format.
@@ -911,6 +911,7 @@ GNUNET_CRYPTO_rsa_encode_key (const struct GNUNET_CRYPTO_RsaPrivateKey *hostkey)
911struct GNUNET_CRYPTO_RsaPrivateKey * 911struct GNUNET_CRYPTO_RsaPrivateKey *
912GNUNET_CRYPTO_rsa_decode_key (const char *buf, uint16_t len); 912GNUNET_CRYPTO_rsa_decode_key (const char *buf, uint16_t len);
913 913
914
914/** 915/**
915 * Create a new private key by reading it from a file. If the 916 * Create a new private key by reading it from a file. If the
916 * files does not exist, create a new key and write it to the 917 * files does not exist, create a new key and write it to the