aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-17 11:43:19 -0400
committerJack Lloyd <[email protected]>2017-09-17 11:43:19 -0400
commit7110b6d046291e8b39e489b6571ba5595a673cba (patch)
tree36313ec3a6f5ae768570424fa9348b0a9cd476ec /src/lib
parentdca7df2ad2ac01566606407d1b187ecb36b8c0e2 (diff)
Fix Wshadow warning
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hash/streebog/streebog.cpp10
1 files changed, 5 insertions, 5 deletions
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<const uint8_t*>(&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];
}
}