(struct sha1_ctx): Use a word buffer, not a byte buffer,

so that we don't need to worry about alignment.  All uses changed.
This merges the 2005-10-28 md5 change into sha1.
This commit is contained in:
Paul Eggert 2006-01-12 07:17:51 +00:00
parent 1834ba06ac
commit 25962cd489

View File

@ -1,6 +1,6 @@
/* Declarations of functions and data types used for SHA1 sum
library functions.
Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
Copyright (C) 2000, 2001, 2003, 2005, 2006 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
@ -33,7 +33,7 @@ struct sha1_ctx
uint32_t total[2];
uint32_t buflen;
char buffer[128] __attribute__ ((__aligned__ (__alignof__ (uint32_t))));
uint32_t buffer[32];
};