From c325001d0db5b3f444c0aefcbf45cdad28ecfc26 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 6 Aug 2020 18:07:39 -0500 Subject: [PATCH] note argument endianness and return values in intro comment for wc_curve25519_make_pub(). --- wolfcrypt/src/curve25519.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/curve25519.c b/wolfcrypt/src/curve25519.c index 968d60f94..dc07147ae 100644 --- a/wolfcrypt/src/curve25519.c +++ b/wolfcrypt/src/curve25519.c @@ -53,7 +53,11 @@ 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. */ +/* compute the public key from an existing private key, using bare vectors. + * + * return value is propagated from curve25519() (0 on success), or ECC_BAD_ARG_E, + * and the byte vectors are little endian. + */ int wc_curve25519_make_pub(int public_size, byte* public, int private_size, const byte* private) { int ret;