summaryrefslogtreecommitdiffstats
path: root/crypto/aes/aes.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-12 00:37:29 +0200
committerRichard Levitte <levitte@openssl.org>2002-10-12 00:37:29 +0200
commit1729588435f4c380f4c3c61e2ee6515cffc6d4ba (patch)
tree01a126c114c11e7a98d9d36eb7bdec614c7d17bb /crypto/aes/aes.h
parentStep 14 of move of engines: Final step, document the change. (diff)
downloadopenssl-1729588435f4c380f4c3c61e2ee6515cffc6d4ba.tar.xz
openssl-1729588435f4c380f4c3c61e2ee6515cffc6d4ba.zip
The AES CTR API was buggy, we need to save the encrypted counter as well
between calls, or that will be lost if it returned with *num non-zero.
Diffstat (limited to 'crypto/aes/aes.h')
-rw-r--r--crypto/aes/aes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/aes/aes.h b/crypto/aes/aes.h
index e8da921ec5..f708f6f34b 100644
--- a/crypto/aes/aes.h
+++ b/crypto/aes/aes.h
@@ -99,7 +99,9 @@ void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,
unsigned char *ivec, int *num);
void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,
const unsigned long length, const AES_KEY *key,
- unsigned char *counter, unsigned int *num);
+ unsigned char counter[AES_BLOCK_SIZE],
+ unsigned char ecount_buf[AES_BLOCK_SIZE],
+ unsigned int *num);
#ifdef __cplusplus