summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbcook <>2016-11-06 10:45:17 +0000
committerbcook <>2016-11-06 10:45:17 +0000
commitd22625fae5cf20b31cbeb279e9c974438bb6ff3f (patch)
treeb153ed9ae70c47b6e122d40ea98eed7c9dbaa03b /src
parent6732c1155155b36860bbe6f86c2525400918a716 (diff)
downloadopenbsd-d22625fae5cf20b31cbeb279e9c974438bb6ff3f.tar.gz
openbsd-d22625fae5cf20b31cbeb279e9c974438bb6ff3f.tar.bz2
openbsd-d22625fae5cf20b31cbeb279e9c974438bb6ff3f.zip
adjust guards to elide unused Bi array
ok jsing@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/curve25519/curve25519.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/libcrypto/curve25519/curve25519.c b/src/lib/libcrypto/curve25519/curve25519.c
index 0dffb15458..56c7f584c1 100644
--- a/src/lib/libcrypto/curve25519/curve25519.c
+++ b/src/lib/libcrypto/curve25519/curve25519.c
@@ -3657,7 +3657,6 @@ static void slide(signed char *r, const uint8_t *a) {
3657 } 3657 }
3658 } 3658 }
3659} 3659}
3660#endif
3661 3660
3662static const ge_precomp Bi[8] = { 3661static const ge_precomp Bi[8] = {
3663 { 3662 {
@@ -3726,7 +3725,6 @@ static const ge_precomp Bi[8] = {
3726 }, 3725 },
3727}; 3726};
3728 3727
3729#ifdef ED25519
3730/* r = a * A + b * B 3728/* r = a * A + b * B
3731 * where a = a[0]+256*a[1]+...+256^31 a[31]. 3729 * where a = a[0]+256*a[1]+...+256^31 a[31].
3732 * and b = b[0]+256*b[1]+...+256^31 b[31]. 3730 * and b = b[0]+256*b[1]+...+256^31 b[31].