From a0f358dd9d812ef49e98269ea9532a09d8ccd359 Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Mon, 6 Aug 2007 12:09:41 +0000 Subject: [PATCH] Add AES192 in CBC mode with PKCS7 padding, and also AES256 in CBC mode with PKCS7 padding. We already have AES128 in CBC mode with PKCS7 padding, which is pretty much strong enough for anything you'd be willing to use an internet-connected computer for. svn path=/trunk/kdesupport/qca/; revision=696966 --- plugins/qca-ossl/qca-ossl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp index 8f30017a..b97e44f0 100644 --- a/plugins/qca-ossl/qca-ossl.cpp +++ b/plugins/qca-ossl/qca-ossl.cpp @@ -6457,9 +6457,11 @@ public: list += "aes192-ecb"; list += "aes192-cfb"; list += "aes192-cbc"; + list += "aes192-cbc-pkcs7"; list += "aes192-ofb"; list += "aes256-ecb"; list += "aes256-cbc"; + list += "aes256-cbc-pkcs7"; list += "aes256-cfb"; list += "aes256-ofb"; list += "blowfish-ecb"; @@ -6564,6 +6566,8 @@ public: return new opensslCipherContext( EVP_aes_192_cfb(), 0, this, type); else if ( type == "aes192-cbc" ) return new opensslCipherContext( EVP_aes_192_cbc(), 0, this, type); + else if ( type == "aes192-cbc-pkcs7" ) + return new opensslCipherContext( EVP_aes_192_cbc(), 1, this, type); else if ( type == "aes192-ofb" ) return new opensslCipherContext( EVP_aes_192_ofb(), 0, this, type); else if ( type == "aes256-ecb" ) @@ -6572,6 +6576,8 @@ public: return new opensslCipherContext( EVP_aes_256_cfb(), 0, this, type); else if ( type == "aes256-cbc" ) return new opensslCipherContext( EVP_aes_256_cbc(), 0, this, type); + else if ( type == "aes256-cbc-pkcs7" ) + return new opensslCipherContext( EVP_aes_256_cbc(), 1, this, type); else if ( type == "aes256-ofb" ) return new opensslCipherContext( EVP_aes_256_ofb(), 0, this, type); else if ( type == "blowfish-ecb" )