summaryrefslogtreecommitdiff
path: root/lib/libcrypto/aes/aes_ctr.c
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2002-06-07 03:45:35 +0000
committerBob Beck <beck@cvs.openbsd.org>2002-06-07 03:45:35 +0000
commitff121e423efd3c611e74f00bc681230532d543d7 (patch)
treeb699b77cb7d8375af148ae64ef32410f3fa82e93 /lib/libcrypto/aes/aes_ctr.c
parentd638bbbd4d30397af50fadfd5f2bb4bb609f04f0 (diff)
Merge OpenSSL 0.9.7-stable-20020605,
correctly autogenerate obj_mac.h
Diffstat (limited to 'lib/libcrypto/aes/aes_ctr.c')
-rw-r--r--lib/libcrypto/aes/aes_ctr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/aes/aes_ctr.c b/lib/libcrypto/aes/aes_ctr.c
index 8e800481de0..aea3db20927 100644
--- a/lib/libcrypto/aes/aes_ctr.c
+++ b/lib/libcrypto/aes/aes_ctr.c
@@ -106,8 +106,8 @@ void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,
while (l--) {
if (n == 0) {
- AES_ctr128_inc(counter);
AES_encrypt(counter, tmp, key);
+ AES_ctr128_inc(counter);
}
*(out++) = *(in++) ^ tmp[n];
n = (n+1) % AES_BLOCK_SIZE;