aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 38ef966a9..e1e2951db 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1048,6 +1048,20 @@ GNUNET_CRYPTO_ecdsa_public_key_from_string (const char *enc,
1048 1048
1049 1049
1050/** 1050/**
1051 * Convert a string representing a private key to a private key.
1052 *
1053 * @param enc encoded public key
1054 * @param enclen number of bytes in @a enc (without 0-terminator)
1055 * @param priv where to store the private key
1056 * @return #GNUNET_OK on success
1057 */
1058int
1059GNUNET_CRYPTO_eddsa_private_key_from_string (const char *enc,
1060 size_t enclen,
1061 struct GNUNET_CRYPTO_EddsaPrivateKey *pub);
1062
1063
1064/**
1051 * Convert a string representing a public key to a public key. 1065 * Convert a string representing a public key to a public key.
1052 * 1066 *
1053 * @param enc encoded public key 1067 * @param enc encoded public key