And exactly the same for AES:

--- \\Debbie\ger\prj\1original\openssl\openssl\crypto\ aes\aes_ctr.c 2008-11-01
20:25:22.000000000 +-0100
+++ \\Debbie\ger\prj\3actual\openssl\crypto\aes\aes_ct r.c 2008-11-01
22:53:56.000000000 +-0100
@@ -117,16 +123,16 @@
unsigned char ivec[AES_BLOCK_SIZE],
unsigned char ecount_buf[AES_BLOCK_SIZE],
unsigned int *num) {

unsigned int n;

- OPENSSL_assert(in && out && key && counter && num);
- assert(*num < AES_BLOCK_SIZE);
+ OPENSSL_assert(in && out && key && ecount_buf && num);
+ OPENSSL_assert(*num < AES_BLOCK_SIZE);

n = *num;

while (length--) {
if (n == 0) {
AES_encrypt(ivec, ecount_buf, key);
AES_ctr128_inc(ivec);
}





On Sat, Nov 1, 2008 at 10:32 PM, Ger Hobbelt wrote:
> VERSION: todays CVS for 0.9.9 (bleeding edge)
>
> ISSUE:
> first assert() included an unknown variable called 'counter'.
>
> --- \\Debbie\ger\prj\1original\openssl\openssl\crypto\ camellia\cmll_ctr.c 2008-11-01
> 20:08:48.000000000 +-0100
> +++ \\Debbie\ger\prj\3actual\openssl\crypto\camellia\c mll_ctr.c 2008-11-01
> 22:26:13.000000000 +-0100
> @@ -122,6 +129,6 @@
> unsigned int n;
>
> - assert(in && out && key && counter && num);
> - assert(*num < CAMELLIA_BLOCK_SIZE);
> + OPENSSL_assert(in && out && key && ecount_buf && num);
> + OPENSSL_assert(*num < CAMELLIA_BLOCK_SIZE);
>
> n = *num;




--
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web: http://www.hobbelt.com/
http://www.hebbut.net/
mail: ger@hobbelt.com
mobile: +31-6-11 120 978
--------------------------------------------------

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org