From: Richard Levitte Date: Fri, 31 May 2002 13:07:39 +0000 (+0000) Subject: In CFB mode, the iv is always encrypted. X-Git-Tag: OpenSSL_0_9_6e~26^2~113 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=09c70c3261e5a574294035afc601f4554766ff50;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];