From: Richard Levitte Date: Thu, 3 Jul 2003 20:50:44 +0000 (+0000) Subject: Oops, I forgot to replace 'counter' with 'ivec' when used... X-Git-Tag: BEN_FIPS_TEST_1~38^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae0352b0f9ace97bd5b00f474d7b5ae8e7a501d;p=thirdparty%2Fopenssl.git Oops, I forgot to replace 'counter' with 'ivec' when used... --- diff --git a/crypto/aes/aes_ctr.c b/crypto/aes/aes_ctr.c index 5a1ced67f85..79e1c18f193 100644 --- a/crypto/aes/aes_ctr.c +++ b/crypto/aes/aes_ctr.c @@ -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;