# HG changeset patch # User Simon Josefsson # Date 1147268240 0 # Node ID 2af9aeb83c49c1738b0af99271a74ee93988d6da # Parent 7272c09465f2402002153b9ba0c8fea07b5bc767 * md4.c: Typo fix, update copyright years. (K1, K2): Don't use L because it turn computations into 64-bit on 64-bit platforms. diff --git a/lib/md4.c b/lib/md4.c --- a/lib/md4.c +++ b/lib/md4.c @@ -1,6 +1,6 @@ /* Functions to compute MD4 message digest of files or memory blocks. according to the definition of MD4 in RFC 1320 from April 1992. - Copyright (C) 1995,1996,1997,1999,2000,2001,2002,2003,2005 + Copyright (C) 1995,1996,1997,1999,2000,2001,2002,2003,2005,2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it @@ -179,7 +179,7 @@ return 0; } -/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The +/* Compute MD4 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ @@ -273,8 +273,8 @@ /* --- Code below is the primary difference between md5.c and md4.c --- */ /* MD4 round constants */ -#define K1 0x5a827999L -#define K2 0x6ed9eba1L +#define K1 0x5a827999 +#define K2 0x6ed9eba1 /* Round functions. */ #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))