diff options
author | weidai <weidai11@users.noreply.github.com> | 2004-02-10 13:43:46 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2004-02-10 13:43:46 +0000 |
commit | d0fef7ae9ce2d30e76444b3f0a35924cfea9c2c8 (patch) | |
tree | ef599ed4c63621ef5db216b01182803313131173 | |
parent | c7b60eb80730a403c2aa837378b5b8ac6de4aedc (diff) | |
download | cryptopp-git-d0fef7ae9ce2d30e76444b3f0a35924cfea9c2c8.tar.gz |
fix ONE_AND_ZEROS_PADDING test vector
-rw-r--r-- | validat1.cpp | 4 |
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(), |