aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-19 13:21:30 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-19 13:21:30 +0000
commitc641b74c2e060528100168f44c074526798c1623 (patch)
treef4a56b64f3483c03d77f4b2722c416e55e5d4c15 /src/include/gnunet_crypto_lib.h
parent7e76381a7d5ff4fe908542f17f76f81b99a5fb04 (diff)
downloadgnunet-c641b74c2e060528100168f44c074526798c1623.tar.gz
gnunet-c641b74c2e060528100168f44c074526798c1623.zip
-also cover private key case
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 274612a84..7aedd58a8 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1055,6 +1055,20 @@ GNUNET_CRYPTO_ecdsa_public_to_ecdhe (const struct GNUNET_CRYPTO_EcdsaPublicKey *
1055 1055
1056/** 1056/**
1057 * @ingroup crypto 1057 * @ingroup crypto
1058 * Convert ECDSA private key to ECDHE private key.
1059 * Please be very careful when using this function, as mixing
1060 * cryptographic primitives is not always healthy.
1061 *
1062 * @param ecdsa ecdsa private key
1063 * @param ecdhe[OUT] ecdhe private key
1064 */
1065void
1066GNUNET_CRYPTO_ecdsa_private_to_ecdhe (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa,
1067 struct GNUNET_CRYPTO_EcdhePrivateKey *ecdhe);
1068
1069
1070/**
1071 * @ingroup crypto
1058 * Extract the public key for the given private key. 1072 * Extract the public key for the given private key.
1059 * 1073 *
1060 * @param priv the private key 1074 * @param priv the private key