From 5a00dff84d7eeeb1434e341a32e2b60a091e81d2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 11 Mar 2016 13:45:39 +0100 Subject: [PATCH] p -> R for clarity --- src/libsodium/crypto_sign/ed25519/ref10/open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_sign/ed25519/ref10/open.c b/src/libsodium/crypto_sign/ed25519/ref10/open.c index 02e2c017..8a7ebbf9 100644 --- a/src/libsodium/crypto_sign/ed25519/ref10/open.c +++ b/src/libsodium/crypto_sign/ed25519/ref10/open.c @@ -32,7 +32,7 @@ crypto_sign_check_S_lt_l(const unsigned char *S) } static int -small_order(const unsigned char p[32]) +small_order(const unsigned char R[32]) { CRYPTO_ALIGN(16) static const unsigned char blacklist[][32] = { /* 0 (order 4) */ @@ -66,7 +66,7 @@ small_order(const unsigned char p[32]) for (i = 0; i < sizeof blacklist / sizeof blacklist[0]; i++) { c = 0; for (j = 0; j < 32; j++) { - c |= p[j] ^ blacklist[i][j]; + c |= R[j] ^ blacklist[i][j]; } if (c == 0) { return 1;