From: Dr. Stephen Henson Date: Tue, 25 Sep 2001 13:49:58 +0000 (+0000) Subject: Fix AES CBC mode EVP_CIPHER structures: the IV length is always X-Git-Tag: OpenSSL_0_9_6c~26^2~201 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=591ccf586d048e2ca04dba82a439dbab8aded695;p=oweals%2Fopenssl.git Fix AES CBC mode EVP_CIPHER structures: the IV length is always 16. --- diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index 8da3d56ff6..51a51a7bbe 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -87,8 +87,8 @@ IMPLEMENT_AES_CIPHER(aes_192_ecb, aes_ecb, 24, 0, EVP_CIPH_ECB_MODE) IMPLEMENT_AES_CIPHER(aes_256_ecb, aes_ecb, 32, 0, EVP_CIPH_ECB_MODE) IMPLEMENT_AES_CIPHER(aes_128_cbc, aes_cbc, 16, 16, EVP_CIPH_CBC_MODE) -IMPLEMENT_AES_CIPHER(aes_192_cbc, aes_cbc, 24, 24, EVP_CIPH_CBC_MODE) -IMPLEMENT_AES_CIPHER(aes_256_cbc, aes_cbc, 32, 32, EVP_CIPH_CBC_MODE) +IMPLEMENT_AES_CIPHER(aes_192_cbc, aes_cbc, 24, 16, EVP_CIPH_CBC_MODE) +IMPLEMENT_AES_CIPHER(aes_256_cbc, aes_cbc, 32, 16, EVP_CIPH_CBC_MODE) static int aes_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc)