mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-21 13:53:43 +00:00
Remove variable block size in datatest.cpp (GH #535)
This commit is contained in:
parent
3efef479d1
commit
8c4300a36c
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user