From 6c1ae3d7e67c71dae0d28ffc677e6687fd140f36 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 6 Nov 2016 11:29:33 +0000 Subject: Avoid compiling in an unused function. Spotted by guenther@ --- src/lib/libcrypto/curve25519/curve25519.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/libcrypto/curve25519/curve25519.c b/src/lib/libcrypto/curve25519/curve25519.c index 56c7f584c1..f24adc1fbe 100644 --- a/src/lib/libcrypto/curve25519/curve25519.c +++ b/src/lib/libcrypto/curve25519/curve25519.c @@ -4859,6 +4859,7 @@ x25519_scalar_mult_generic(uint8_t out[32], const uint8_t scalar[32], fe_tobytes(out, x2); } +#ifdef unused void x25519_public_from_private_generic(uint8_t out_public_value[32], const uint8_t private_key[32]) @@ -4882,6 +4883,7 @@ x25519_public_from_private_generic(uint8_t out_public_value[32], fe_mul(zplusy, zplusy, zminusy_inv); fe_tobytes(out_public_value, zplusy); } +#endif void x25519_public_from_private(uint8_t out_public_value[32], -- cgit v1.2.3-55-g6feb