From: Richard Levitte Date: Fri, 31 May 2002 13:07:45 +0000 (+0000) Subject: In CFB mode, the iv is always encrypted. X-Git-Tag: OpenSSL_0_9_7-beta1~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90b480f2af5bc4a92cde009a636e0f55678dc91f;p=oweals%2Fopenssl.git In CFB mode, the iv is always encrypted. --- diff --git a/crypto/aes/aes_cfb.c b/crypto/aes/aes_cfb.c index 9b2917298a..41c2a5ec3d 100644 --- a/crypto/aes/aes_cfb.c +++ b/crypto/aes/aes_cfb.c @@ -137,7 +137,7 @@ void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out, } else { while (l--) { if (n == 0) { - AES_decrypt(ivec, ivec, key); + AES_encrypt(ivec, ivec, key); } c = *(in); *(out++) = *(in++) ^ ivec[n];