summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-28 10:03:29 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-28 10:03:29 -0400
commit0390e1a60cb91fa581ec568879bf300224db6322 (patch)
treeeebe9e43f07064b6084611bacd855777ddd7a87b
parenta8676b1edecee2d1d472b7f67dd026ef7b084a2f (diff)
downloadtor-0390e1a60cb91fa581ec568879bf300224db6322.tar.gz
tor-0390e1a60cb91fa581ec568879bf300224db6322.zip
Fix a set of variable-shadowing warnings in curve25519-donna.c
-rw-r--r--src/ext/curve25519_donna/curve25519-donna.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ext/curve25519_donna/curve25519-donna.c b/src/ext/curve25519_donna/curve25519-donna.c
index 5a0c3401dd..1c5a27ab8a 100644
--- a/src/ext/curve25519_donna/curve25519-donna.c
+++ b/src/ext/curve25519_donna/curve25519-donna.c
@@ -483,7 +483,6 @@ fcontract(u8 *output, limb *input_limbs) {
int i;
int j;
s32 input[10];
- s32 mask;
/* |input_limbs[i]| < 2^26, so it's valid to convert to an s32. */
for (i = 0; i < 10; i++) {
@@ -572,7 +571,7 @@ fcontract(u8 *output, limb *input_limbs) {
/* It still remains the case that input might be between 2^255-19 and 2^255.
* In this case, input[1..9] must take their maximum value and input[0] must
* be >= (2^255-19) & 0x3ffffff, which is 0x3ffffed. */
- mask = s32_gte(input[0], 0x3ffffed);
+ s32 mask = s32_gte(input[0], 0x3ffffed);
for (i = 1; i < 10; i++) {
if ((i & 1) == 1) {
mask &= s32_eq(input[i], 0x1ffffff);