summaryrefslogtreecommitdiff
path: root/validat1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-02 00:15:34 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-02 00:15:34 -0500
commit58726498f100b4f7c280bd74c6ab67cf1db04afd (patch)
tree881d3f1383b7bdbc93995f983411b426d8e40620 /validat1.cpp
parent5f083d652e4fb9698e0e22d3629311749d4142a6 (diff)
downloadcryptopp-git-58726498f100b4f7c280bd74c6ab67cf1db04afd.tar.gz
Clear clang-tidy warnings
Diffstat (limited to 'validat1.cpp')
-rw-r--r--validat1.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/validat1.cpp b/validat1.cpp
index c47ad44f..5c67f0c7 100644
--- a/validat1.cpp
+++ b/validat1.cpp
@@ -2782,10 +2782,9 @@ bool ValidateSerpent()
std::cout << (pass1 && pass2 ? "passed:" : "FAILED:") << " Algorithm key lengths\n";
FileSource valdata(CRYPTOPP_DATA_DIR "TestData/serpentv.dat", true, new HexDecoder);
- bool pass = true;
- pass = BlockTransformationTest(FixedRoundsCipherFactory<SerpentEncryption, SerpentDecryption>(16), valdata, 5) && pass;
- pass = BlockTransformationTest(FixedRoundsCipherFactory<SerpentEncryption, SerpentDecryption>(24), valdata, 4) && pass;
- pass = BlockTransformationTest(FixedRoundsCipherFactory<SerpentEncryption, SerpentDecryption>(32), valdata, 3) && pass;
+ pass3 = BlockTransformationTest(FixedRoundsCipherFactory<SerpentEncryption, SerpentDecryption>(16), valdata, 5) && pass3;
+ pass3 = BlockTransformationTest(FixedRoundsCipherFactory<SerpentEncryption, SerpentDecryption>(24), valdata, 4) && pass3;
+ pass3 = BlockTransformationTest(FixedRoundsCipherFactory<SerpentEncryption, SerpentDecryption>(32), valdata, 3) && pass3;
return pass1 && pass2 && pass3;
}