From 0fd8d0f370a576598050c3572d6eb623095db936 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 21 Oct 2005 14:31:07 +0000 Subject: [PATCH] * arctwo.h (arctwo_setkey): Protect variable in CPP macro, suggested by Ralf Wildenhues . --- lib/ChangeLog | 5 +++++ lib/arctwo.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 08fd08779..6d6ec2ca9 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 2005-10-21 Simon Josefsson + * arctwo.h (arctwo_setkey): Protect variable in CPP macro, + suggested by Ralf Wildenhues . + +2005-10-21 Simon Josefsson + * rijndael-api-fst.c: Fix bugs in CBC mode for more than one block. diff --git a/lib/arctwo.h b/lib/arctwo.h index ac97fcf67..89c581e20 100644 --- a/lib/arctwo.h +++ b/lib/arctwo.h @@ -42,7 +42,7 @@ arctwo_setkey_ekb (arctwo_context *context, size_t keylen, const char *key, size_t effective_keylen); #define arctwo_setkey(context,keylen,key) \ - arctwo_setkey_ekb (context, keylen, key, 8 * keylen) + arctwo_setkey_ekb (context, keylen, key, 8 * (keylen)) /* Encrypt INBUF of size LENGTH into OUTBUF. LENGTH must be a multiple of ARCTWO_BLOCK_SIZE. CONTEXT hold the encryption key, -- 2.11.0