mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
curve25519.c: call the new API routine wc_curve25519_make_pub(), not wc_curve25519(), for clarity and consistency (hat tip to Jacob).
This commit is contained in:
@ -54,7 +54,7 @@ const curve25519_set_type curve25519_sets[] = {
|
|||||||
static const unsigned char kCurve25519BasePoint[CURVE25519_KEYSIZE] = {9};
|
static const unsigned char kCurve25519BasePoint[CURVE25519_KEYSIZE] = {9};
|
||||||
|
|
||||||
/* compute the public key from an existing private key, using bare vectors. */
|
/* 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;
|
int ret;
|
||||||
|
|
||||||
if ((public_size != CURVE25519_KEYSIZE) ||
|
if ((public_size != CURVE25519_KEYSIZE) ||
|
||||||
|
@ -87,7 +87,7 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
WOLFSSL_API
|
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
|
WOLFSSL_API
|
||||||
int wc_curve25519_make_key(WC_RNG* rng, int keysize, curve25519_key* key);
|
int wc_curve25519_make_key(WC_RNG* rng, int keysize, curve25519_key* key);
|
||||||
|
Reference in New Issue
Block a user