From 52a2222c79d4fc96d5f65fb785ab64fb8f35f823 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 6 Aug 2020 14:48:29 -0500 Subject: [PATCH] curve25519.c: call the new API routine wc_curve25519_make_pub(), not wc_curve25519(), for clarity and consistency (hat tip to Jacob). --- wolfcrypt/src/curve25519.c | 2 +- wolfssl/wolfcrypt/curve25519.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/curve25519.c b/wolfcrypt/src/curve25519.c index 6ed77ef93..968d60f94 100644 --- a/wolfcrypt/src/curve25519.c +++ b/wolfcrypt/src/curve25519.c @@ -54,7 +54,7 @@ const curve25519_set_type curve25519_sets[] = { static const unsigned char kCurve25519BasePoint[CURVE25519_KEYSIZE] = {9}; /* compute the public key from an existing private key, using bare vectors. */ -int wc_curve25519(int public_size, byte* public, int private_size, const byte* private) { +int wc_curve25519_make_pub(int public_size, byte* public, int private_size, const byte* private) { int ret; if ((public_size != CURVE25519_KEYSIZE) || diff --git a/wolfssl/wolfcrypt/curve25519.h b/wolfssl/wolfcrypt/curve25519.h index 9ac83c539..cd85de456 100644 --- a/wolfssl/wolfcrypt/curve25519.h +++ b/wolfssl/wolfcrypt/curve25519.h @@ -87,7 +87,7 @@ enum { }; WOLFSSL_API -int wc_curve25519(int public_size, byte* public, int private_size, const byte* private); +int wc_curve25519_make_pub(int public_size, byte* public, int private_size, const byte* private); WOLFSSL_API int wc_curve25519_make_key(WC_RNG* rng, int keysize, curve25519_key* key);