summaryrefslogtreecommitdiffstats
path: root/crypto/aes/aes_ctr.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-07-03 20:50:44 +0000
committerRichard Levitte <levitte@openssl.org>2003-07-03 20:50:44 +0000
commit2ae0352b0f9ace97bd5b00f474d7b5ae8e7a501d (patch)
tree9caf3040cad2e7eb5b7e611b4f6fe1f3b635083d /crypto/aes/aes_ctr.c
parent94805c84d104310305c29a0c25fb0c6f0330b378 (diff)
Oops, I forgot to replace 'counter' with 'ivec' when used...
Diffstat (limited to 'crypto/aes/aes_ctr.c')
-rw-r--r--crypto/aes/aes_ctr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/aes/aes_ctr.c b/crypto/aes/aes_ctr.c
index 5a1ced67f8..79e1c18f19 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;