In CFB mode, the iv is always encrypted.

This commit is contained in:
Richard Levitte 2002-05-31 13:07:39 +00:00
parent 1ed0c6621b
commit 09c70c3261

View file

@ -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];