gcrypt blowfish supports 128 bit key size only

This commit is contained in:
Martin Willi 2009-06-11 11:05:00 +02:00
parent 25d6c5146b
commit e51f607221
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ gcrypt_crypter_t *gcrypt_crypter_create(encryption_algorithm_t algo,
gcrypt_alg = GCRY_CIPHER_CAST5;
break;
case ENCR_BLOWFISH:
if (key_size != 16)
{ /* gcrypt currently supports 128 bit blowfish only */
return NULL;
}
gcrypt_alg = GCRY_CIPHER_BLOWFISH;
break;
/* case ENCR_AES_CTR: