mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-28 12:34:31 +00:00
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
This commit is contained in:
parent
55c43acae1
commit
a0f358dd9d
@ -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" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user