* arctwo.h (arctwo_setkey): Protect variable in CPP macro,
authorSimon Josefsson <simon@josefsson.org>
Fri, 21 Oct 2005 14:31:07 +0000 (14:31 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 21 Oct 2005 14:31:07 +0000 (14:31 +0000)
suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

lib/ChangeLog
lib/arctwo.h

index 08fd087..6d6ec2c 100644 (file)
@@ -1,5 +1,10 @@
 2005-10-21  Simon Josefsson  <jas@extundo.com>
 
+       * arctwo.h (arctwo_setkey): Protect variable in CPP macro,
+       suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2005-10-21  Simon Josefsson  <jas@extundo.com>
+
        * rijndael-api-fst.c: Fix bugs in CBC mode for more than one
        block.
 
index ac97fcf..89c581e 100644 (file)
@@ -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,