diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-01-12 07:17:51 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-01-12 07:17:51 +0000 |
commit | 25962cd48918be2a55d733eec6fe4ac26fdc79cd (patch) | |
tree | 5a6abe5cf84a2e117e3d1956cfe15c207def0c38 /lib | |
parent | 1834ba06ac55a1c627ed601e5cf7f649dbde12f0 (diff) | |
download | coreutils-25962cd48918be2a55d733eec6fe4ac26fdc79cd.tar.xz |
(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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sha1.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha1.h b/lib/sha1.h index a3ab132e8..9545f0b2b 100644 --- a/lib/sha1.h +++ b/lib/sha1.h @@ -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]; }; |