projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94805c8
)
Oops, I forgot to replace 'counter' with 'ivec' when used...
author
Richard Levitte
<levitte@openssl.org>
Thu, 3 Jul 2003 20:50:44 +0000
(20:50 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 3 Jul 2003 20:50:44 +0000
(20:50 +0000)
crypto/aes/aes_ctr.c
patch
|
blob
|
history
diff --git
a/crypto/aes/aes_ctr.c
b/crypto/aes/aes_ctr.c
index 5a1ced67f85fb91fefe91421601e352aee69bf7b..79e1c18f193caf9cd1e545ddd11b257e41363579 100644
(file)
--- 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;