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