Commit 09c70c32 authored by Richard Levitte's avatar Richard Levitte
Browse files

In CFB mode, the iv is always encrypted.

parent 1ed0c662
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];