# HG changeset patch # User Simon Josefsson # Date 1129905067 0 # Node ID 764fd03c3ff9da285f17d52cf7056fcb11e4690d # Parent 3249ff532a18686dffef687a681c93fa4cdb4357 * arctwo.h (arctwo_setkey): Protect variable in CPP macro, suggested by Ralf Wildenhues . diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/lib/arctwo.h b/lib/arctwo.h --- a/lib/arctwo.h +++ b/lib/arctwo.h @@ -42,7 +42,7 @@ 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,