In CFB mode, the iv is always encrypted.
This commit is contained in:
parent
578c33c010
commit
90b480f2af
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user