mirror of https://github.com/wolfSSL/wolfssl.git
curve25519.c: call the new API routine wc_curve25519_make_pub(), not wc_curve25519(), for clarity and consistency (hat tip to Jacob).
parent
b2e7c09b71
commit
52a2222c79
|
@ -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) ||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue