diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 14 |
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 | */ | ||
1065 | void | ||
1066 | GNUNET_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 |