From 09c70c3261e5a574294035afc601f4554766ff50 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 31 May 2002 13:07:39 +0000 Subject: [PATCH] In CFB mode, the iv is always encrypted. --- crypto/aes/aes_cfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.25.1