summaryrefslogtreecommitdiff
path: root/validat1.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-02-10 13:43:46 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-02-10 13:43:46 +0000
commit48aa1c18b116d0d048ec797c8a3b2abf586df49d (patch)
treeef599ed4c63621ef5db216b01182803313131173 /validat1.cpp
parent8aa15b7589a1b3ff3aa0b43b0fe4febd8aa6f8c7 (diff)
downloadcryptopp-48aa1c18b116d0d048ec797c8a3b2abf586df49d.tar.gz
fix ONE_AND_ZEROS_PADDING test vector
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@148 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'validat1.cpp')
-rw-r--r--validat1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/validat1.cpp b/validat1.cpp
index 6c0aee3..2d8d91f 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(),