diff options
author | jsing <> | 2016-11-06 11:29:33 +0000 |
---|---|---|
committer | jsing <> | 2016-11-06 11:29:33 +0000 |
commit | 6c1ae3d7e67c71dae0d28ffc677e6687fd140f36 (patch) | |
tree | 41d814adbe43023284dc68b5f435e4bcba0fceca /src | |
parent | d22625fae5cf20b31cbeb279e9c974438bb6ff3f (diff) | |
download | openbsd-6c1ae3d7e67c71dae0d28ffc677e6687fd140f36.tar.gz openbsd-6c1ae3d7e67c71dae0d28ffc677e6687fd140f36.tar.bz2 openbsd-6c1ae3d7e67c71dae0d28ffc677e6687fd140f36.zip |
Avoid compiling in an unused function.
Spotted by guenther@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/curve25519/curve25519.c | 2 |
1 files changed, 2 insertions, 0 deletions
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], | |||
4859 | fe_tobytes(out, x2); | 4859 | fe_tobytes(out, x2); |
4860 | } | 4860 | } |
4861 | 4861 | ||
4862 | #ifdef unused | ||
4862 | void | 4863 | void |
4863 | x25519_public_from_private_generic(uint8_t out_public_value[32], | 4864 | x25519_public_from_private_generic(uint8_t out_public_value[32], |
4864 | const uint8_t private_key[32]) | 4865 | const uint8_t private_key[32]) |
@@ -4882,6 +4883,7 @@ x25519_public_from_private_generic(uint8_t out_public_value[32], | |||
4882 | fe_mul(zplusy, zplusy, zminusy_inv); | 4883 | fe_mul(zplusy, zplusy, zminusy_inv); |
4883 | fe_tobytes(out_public_value, zplusy); | 4884 | fe_tobytes(out_public_value, zplusy); |
4884 | } | 4885 | } |
4886 | #endif | ||
4885 | 4887 | ||
4886 | void | 4888 | void |
4887 | x25519_public_from_private(uint8_t out_public_value[32], | 4889 | x25519_public_from_private(uint8_t out_public_value[32], |