mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
Oops, I forgot to replace 'counter' with 'ivec' when used...
This commit is contained in:
parent
94805c84d1
commit
2ae0352b0f
@ -153,8 +153,8 @@ void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,
|
||||
|
||||
while (l--) {
|
||||
if (n == 0) {
|
||||
AES_encrypt(counter, ecount_buf, key);
|
||||
AES_ctr128_inc(counter);
|
||||
AES_encrypt(ivec, ecount_buf, key);
|
||||
AES_ctr128_inc(ivec);
|
||||
}
|
||||
*(out++) = *(in++) ^ ecount_buf[n];
|
||||
n = (n+1) % AES_BLOCK_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user