The AES CTR API was buggy, we need to save the encrypted counter as well
[openssl.git] / crypto / aes / aes.h
index e8da921..f708f6f 100644 (file)
@@ -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