From: Paul Eggert Date: Thu, 12 Jan 2006 07:17:51 +0000 (+0000) Subject: (struct sha1_ctx): Use a word buffer, not a byte buffer, X-Git-Tag: v6.0~898 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25962cd48918be2a55d733eec6fe4ac26fdc79cd;p=thirdparty%2Fcoreutils.git (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. --- diff --git a/lib/sha1.h b/lib/sha1.h index a3ab132e81..9545f0b2be 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]; };