X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmd2.c;h=cb4c63b2b7d8a86dafff3c6b5514ff4e13cff925;hb=f58214d62e0c8a65aa13cf38ea148cef2547a06d;hp=787b76693b8f8ed41d56ed3a0ad6f0339de86c4d;hpb=c5d8261e0e5c4675b6238af2f25cad968b94d8c8;p=gnulib.git diff --git a/lib/md2.c b/lib/md2.c index 787b76693..cb4c63b2b 100644 --- a/lib/md2.c +++ b/lib/md2.c @@ -1,6 +1,6 @@ /* Functions to compute MD2 message digest of files or memory blocks. according to the definition of MD2 in RFC 1319 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,2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it @@ -20,9 +20,7 @@ /* Adapted by Simon Josefsson from public domain Libtomcrypt 1.06 by Tom St Denis. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "md2.h" @@ -55,10 +53,7 @@ md2_init_ctx (struct md2_ctx *ctx) } /* Put result from CTX in first 16 bytes following RESBUF. The result - must be in little endian byte order. - - IMPORTANT: On some systems it is required that RESBUF is correctly - aligned for a 32 bits value. */ + must be in little endian byte order. */ void * md2_read_ctx (const struct md2_ctx *ctx, void *resbuf) { @@ -68,10 +63,7 @@ md2_read_ctx (const struct md2_ctx *ctx, void *resbuf) } /* Process the remaining bytes in the internal buffer and the usual - prolog according to the standard and write the result to RESBUF. - - IMPORTANT: On some systems it is required that RESBUF is correctly - aligned for a 32 bits value. */ + prolog according to the standard and write the result to RESBUF. */ void * md2_finish_ctx (struct md2_ctx *ctx, void *resbuf) {