summaryrefslogtreecommitdiff
path: root/cipher/tiger.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-05-02 14:09:27 +0000
committerWerner Koch <wk@gnupg.org>2002-05-02 14:09:27 +0000
commit9e4c8a9ed1ea23264295969053c6a09965ec224d (patch)
tree656e5407aa8cf3225db1d98caddb1b9d17b4037b /cipher/tiger.c
parent5c1359f10190b23c5d95dfd711809cb656e600dc (diff)
downloadlibgcrypt-9e4c8a9ed1ea23264295969053c6a09965ec224d.tar.gz
* random.c (_gcry_fast_random_poll): Initialize the module so the
mutex can be used. * primegen.c (small_prime_numbers): Moved table from smallprime.c * smallprime.c: Fiel removed. * des.c (leftkey_swap, rightkey_swap, working_memcmp): Made static. * cipher.c (gcry_cipher_map_name): Map "RIJNDAEL" to "AES". * rijndael.c (rijndael_get_info): We do only support a 128 bit blocksize so it makes sense to change the algorithm strings to AES. * tiger.c (tiger_final): Removed superfluous token pasting operators. * md5.c (md5_final): Ditto.
Diffstat (limited to 'cipher/tiger.c')
-rw-r--r--cipher/tiger.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/cipher/tiger.c b/cipher/tiger.c
index c4b107da..6e0b8fa3 100644
--- a/cipher/tiger.c
+++ b/cipher/tiger.c
@@ -1,5 +1,5 @@
/* tiger.c - The TIGER hash function
- * Copyright (C) 1998, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
*
* This file is part of Libgcrypt.
*
@@ -813,12 +813,12 @@ tiger_final( TIGER_CONTEXT *hd )
p = hd->buf;
#ifdef BIG_ENDIAN_HOST
- #define X(a) do { *(u64*)p = hd->##a ; p += 8; } while(0)
+ #define X(a) do { *(u64*)p = hd->a ; p += 8; } while(0)
#else /* little endian */
- #define X(a) do { *p++ = hd->##a >> 56; *p++ = hd->##a >> 48; \
- *p++ = hd->##a >> 40; *p++ = hd->##a >> 32; \
- *p++ = hd->##a >> 24; *p++ = hd->##a >> 16; \
- *p++ = hd->##a >> 8; *p++ = hd->##a; } while(0)
+ #define X(a) do { *p++ = hd->a >> 56; *p++ = hd->a >> 48; \
+ *p++ = hd->a >> 40; *p++ = hd->a >> 32; \
+ *p++ = hd->a >> 24; *p++ = hd->a >> 16; \
+ *p++ = hd->a >> 8; *p++ = hd->a; } while(0)
#endif
X(a);
X(b);
@@ -958,4 +958,3 @@ tiger_constructor(void)
#endif /* HAVE_U64_TYPEDEF */
-