summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--validat1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/validat1.cpp b/validat1.cpp
index 6c0aee3f..2d8d91fe 100644
--- a/validat1.cpp
+++ b/validat1.cpp
@@ -582,13 +582,13 @@ bool ValidateCipherModes()
cout << (fail ? "FAILED " : "passed ") << "CBC decryption with PKCS #7 padding" << endl;
}
{
- // generated with Crypto++, matches FIPS 81
+ // generated with Crypto++ 5.2, matches FIPS 81
// but has extra 8 bytes as result of padding
const byte encrypted[] = {
0xE5, 0xC7, 0xCD, 0xDE, 0x87, 0x2B, 0xF2, 0x7C,
0x43, 0xE9, 0x34, 0x00, 0x8C, 0x38, 0x9C, 0x0F,
0x68, 0x37, 0x88, 0x49, 0x9A, 0x7C, 0x05, 0xF6,
- 0x57, 0x25, 0x0C, 0x94, 0x83, 0xD5, 0x01, 0x79};
+ 0xcf, 0xb7, 0xc7, 0x64, 0x0e, 0x7c, 0xd9, 0xa7};
CBC_Mode_ExternalCipher::Encryption modeE(desE, iv);
fail = !TestFilter(StreamTransformationFilter(modeE, NULL, StreamTransformationFilter::ONE_AND_ZEROS_PADDING).Ref(),