summaryrefslogtreecommitdiff
path: root/cipher/md5.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/md5.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/md5.c')
-rw-r--r--cipher/md5.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/cipher/md5.c b/cipher/md5.c
index 62584305..6297de16 100644
--- a/cipher/md5.c
+++ b/cipher/md5.c
@@ -1,5 +1,5 @@
/* md5.c - MD5 Message-Digest Algorithm
- * Copyright (C) 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 1995,1996,1998,1999,2001,2002 Free Software Foundation, Inc.
*
* according to the definition of MD5 in RFC 1321 from April 1992.
* NOTE: This is *not* the same file as the one from glibc.
@@ -19,7 +19,7 @@
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
-/* heavily modified for GnuPG by <werner.koch@guug.de> */
+/* heavily modified for GnuPG by Werner Koch <wk@gnupg.org> */
/* Test values:
* "" D4 1D 8C D9 8F 00 B2 04 E9 80 09 98 EC F8 42 7E
@@ -310,12 +310,9 @@ md5_final( MD5_CONTEXT *hd )
p = hd->buf;
#ifdef BIG_ENDIAN_HOST
- #define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \
- *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
+ #define X(a) do { *p++ = hd->a ; *p++ = hd->a >> 8; \
+ *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while(0)
#else /* little endian */
- /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
- /* Unixware's cpp doesn't like the above construct so we do it his way:
- * (reported by Allan Clark) */
#define X(a) do { *(u32*)p = (*hd).a ; p += 4; } while(0)
#endif
X(A);
@@ -419,6 +416,4 @@ _gcry_md5_constructor(void)
}
#endif
-
-
/* end of file */