also support 192 bit keys for Twofish and Serpent
This commit is contained in:
1 parent
315fd57225
commit
24bb9fdbf7
2 files changed
+4
-2
No files matched your search
@@ -162,7 +162,8 @@ serpent_crypter_t *serpent_crypter_create(encryption_algorithm_t algo, size_t ke
|
||||
{
|
||||
private_serpent_crypter_t *this;
|
||||
|
||||
if (algo != ENCR_SERPENT_CBC || !(key_size == 16 || key_size == 32))
|
||||
if (algo != ENCR_SERPENT_CBC ||
|
||||
!(key_size == 16 || key_size = 24 || key_size == 32))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,8 @@ twofish_crypter_t *twofish_crypter_create(encryption_algorithm_t algo, size_t ke
|
||||
{
|
||||
private_twofish_crypter_t *this;
|
||||
|
||||
if (algo != ENCR_TWOFISH_CBC || !(key_size == 16 || key_size == 32))
|
||||
if (algo != ENCR_TWOFISH_CBC ||
|
||||
!(key_size == 16 || key_size = 24 || key_size == 32))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user