From 3db75fc64771c79bcb9b31e4c34b63b53b2acfea Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 19 Sep 2017 22:16:49 +0200 Subject: [PATCH] No need for ge_scalarmult_vartime() in minimal mode --- .../crypto_core/curve25519/ref10/curve25519_ref10.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c index 40e0a1b4..9375274d 100644 --- a/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +++ b/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c @@ -1804,6 +1804,10 @@ ge_double_scalarmult_vartime(ge_p2 *r, const unsigned char *a, const ge_p3 *A, } } +#ifndef MINIMAL + +/* only used for verification of legacy (edwards25519sha512batch) signatures */ + void ge_scalarmult_vartime(ge_p3 *r, const unsigned char *a, const ge_p3 *A) { @@ -1863,6 +1867,8 @@ ge_scalarmult_vartime(ge_p3 *r, const unsigned char *a, const ge_p3 *A) } } +#endif + void ge_scalarmult_base(ge_p3 *h, const unsigned char *a) {