From 7110b6d046291e8b39e489b6571ba5595a673cba Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 17 Sep 2017 11:43:19 -0400 Subject: Fix Wshadow warning --- src/lib/hash/streebog/streebog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/hash/streebog/streebog.cpp b/src/lib/hash/streebog/streebog.cpp index c0e60f10a..07286e9c8 100644 --- a/src/lib/hash/streebog/streebog.cpp +++ b/src/lib/hash/streebog/streebog.cpp @@ -65,16 +65,16 @@ inline void e(uint64_t* K, const uint64_t* m) K[i] ^= m[i]; } - for(int i = 0; i < 12; ++i) + for(size_t i = 0; i < 12; ++i) { lps(K); load_le(C, reinterpret_cast(&STREEBOG_C[i][0]), 8); - for(size_t i = 0; i != 8; ++i) - A[i] ^= C[i]; + for(size_t j = 0; j != 8; ++j) + A[j] ^= C[j]; lps(A); - for(size_t i = 0; i != 8; ++i) - K[i] ^= A[i]; + for(size_t j = 0; j != 8; ++j) + K[j] ^= A[j]; } } -- cgit v1.2.3