From a25185172b8e3c03e3bb8f42c286b081fbeddf88 Mon Sep 17 00:00:00 2001 From: subtly Date: Fri, 14 Nov 2014 13:14:22 +0100 Subject: [PATCH] pr fix --- test/crypto.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/crypto.cpp b/test/crypto.cpp index cd7d8e984..d8bd25035 100644 --- a/test/crypto.cpp +++ b/test/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;