aboutsummaryrefslogtreecommitdiffstats
path: root/crypto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.cpp')
-rw-r--r--crypto.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto.cpp b/crypto.cpp
index cd7d8e98..d8bd2503 100644
--- a/crypto.cpp
+++ b/crypto.cpp
@@ -340,8 +340,7 @@ BOOST_AUTO_TEST_CASE(cryptopp_aes128_ctr)
// 68 % 255 should be difference of counter
e.ProcessData(out, in, text.size());
-
- (u128)ctr += (u128)(text.size() % 16);
+ ctr = h128(u128(ctr) + text.size() % 16);
BOOST_REQUIRE(text != original);
cipherCopy = text;