summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-02-18 11:57:26 -0500
committerJeffrey Walton <noloader@gmail.com>2018-02-18 11:57:26 -0500
commit8c4300a36c15f79c89d898e1c47f3967cb9f2070 (patch)
treebb67cdabf62415f48bf8fa3ce01beccb0318c923 /datatest.cpp
parent3efef479d15fc97d61ad8a10684bc8c76be905ed (diff)
downloadcryptopp-git-8c4300a36c15f79c89d898e1c47f3967cb9f2070.tar.gz
Remove variable block size in datatest.cpp (GH #535)
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/datatest.cpp b/datatest.cpp
index 8f33b668..cfabad40 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -401,9 +401,6 @@ void TestSymmetricCipher(TestData &v, const NameValuePairs &overrideParameters)
lastName = name;
}
- // Most block ciphers don't specify BlockSize. Kalyna and Threefish use it.
- int blockSize = pairs.GetIntValueWithDefault(Name::BlockSize(), 0);
-
// Most block ciphers don't specify BlockPaddingScheme. Kalyna uses it in test vectors.
// 0 is NoPadding, 1 is ZerosPadding, 2 is PkcsPadding, 3 is OneAndZerosPadding, etc
// Note: The machinery is wired such that paddingScheme is effectively latched. An
@@ -411,7 +408,7 @@ void TestSymmetricCipher(TestData &v, const NameValuePairs &overrideParameters)
int paddingScheme = pairs.GetIntValueWithDefault(Name::BlockPaddingScheme(), 0);
ConstByteArrayParameter iv;
- if (pairs.GetValue(Name::IV(), iv) && iv.size() != encryptor->IVSize() && (int)iv.size() != blockSize)
+ if (pairs.GetValue(Name::IV(), iv) && iv.size() != encryptor->IVSize())
SignalTestFailure();
if (test == "Resync")