curve25519.c: call the new API routine wc_curve25519_make_pub(), not wc_curve25519(), for clarity and consistency (hat tip to Jacob).

pull/3200/head
Daniel Pouzzner 2020-08-06 14:48:29 -05:00
parent b2e7c09b71
commit 52a2222c79
2 changed files with 2 additions and 2 deletions

View File

@ -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) ||

View File

@ -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);