md2: clarify comments to say that alignment is not required.
authorSimon Josefsson <simon@josefsson.org>
Thu, 31 Jan 2008 10:10:36 +0000 (11:10 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 31 Jan 2008 10:10:36 +0000 (11:10 +0100)
* lib/md2.h: Remove warning about alignment in comment.
* lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment
has never been required.

ChangeLog
lib/md2.c
lib/md2.h

index c11f9ee..2bf6d5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-01-31  Simon Josefsson  <simon@josefsson.org>
 
+       * lib/md2.h: Remove warning about alignment in comment.
+       * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
+       never been required.
+
+2008-01-31  Simon Josefsson  <simon@josefsson.org>
+
        md4: adapt alignment constraint fix from sha1.
        * lib/md4.c (set_uint32): New function, from sha1.c
        (md4_read_ctx): Use it.
index c6154e4..cb4c63b 100644 (file)
--- 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,2006
+   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
@@ -53,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)
 {
@@ -66,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)
 {
index 70d9e06..401604e 100644 (file)
--- a/lib/md2.h
+++ b/lib/md2.h
@@ -1,6 +1,6 @@
 /* Declarations of functions and data types used for MD2 sum
    library functions.
-   Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
@@ -52,19 +52,13 @@ extern void md2_process_bytes (const void *buffer, size_t len,
 /* Process the remaining bytes in the buffer and put result from CTX
    in first 16 bytes following RESBUF.  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.
-
-   IMPORTANT: On some systems it is required that RESBUF be correctly
-   aligned for a 32 bits value.  */
+   ASCII representation of the message digest.  */
 extern void *md2_finish_ctx (struct md2_ctx *ctx, void *resbuf);
 
 
 /* Put result from CTX in first 16 bytes following RESBUF.  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.
-
-   IMPORTANT: On some systems it is required that RESBUF is correctly
-   aligned for a 32 bits value.  */
+   to the wanted ASCII representation of the message digest.  */
 extern void *md2_read_ctx (const struct md2_ctx *ctx, void *resbuf);