In CFB mode, the iv is always encrypted.
This commit is contained in:
parent
1ed0c6621b
commit
09c70c3261
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue