From: Paul Eggert Date: Thu, 12 Jan 2006 07:18:13 +0000 (+0000) Subject: (struct sha256_ctx): Use a word buffer, not a byte buffer, so that we X-Git-Tag: v6.0~897 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a60af3a64fcf58fe4a5d824678b791a3092c6495;p=thirdparty%2Fcoreutils.git (struct sha256_ctx): Use a word buffer, not a byte buffer, so that we don't need to worry about alignment. All uses changed. --- diff --git a/lib/sha256.h b/lib/sha256.h index 11be3adf11..ccbe6cfd75 100644 --- a/lib/sha256.h +++ b/lib/sha256.h @@ -20,7 +20,7 @@ # define SHA256_H 1 # include -# include "md5.h" +# include /* Structure to save state of computation between the single steps. */ struct sha256_ctx @@ -29,7 +29,7 @@ struct sha256_ctx uint32_t total[2]; uint32_t buflen; - char buffer[128]; + uint32_t buffer[32]; };