From 726347d0000dadf7c866a12ed2a6a4f529971c6e Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 10 May 2006 13:37:20 +0000 Subject: [PATCH] * md4.c: Typo fix, update copyright years. (K1, K2): Don't use L because it turn computations into 64-bit on 64-bit platforms. --- lib/md4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/md4.c b/lib/md4.c index e5f5d5487..2d943b9f8 100644 --- 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 @@ process_partial_block:; 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 @@ md4_process_bytes (const void *buffer, size_t len, struct md4_ctx *ctx) /* --- 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)))) -- 2.11.0