From: Paul Eggert Date: Thu, 12 Jan 2006 07:18:39 +0000 (+0000) Subject: (struct sha512_ctx): Use a word buffer, not a byte buffer, so that we X-Git-Tag: v6.0~896 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f83336726c71154b6b51377ece24fc607a4f5d7;p=thirdparty%2Fcoreutils.git (struct sha512_ctx): Use a word buffer, not a byte buffer, so that we don't need to worry about alignment. --- diff --git a/lib/sha512.h b/lib/sha512.h index 3740de9c5c..b90e71ad43 100644 --- a/lib/sha512.h +++ b/lib/sha512.h @@ -20,13 +20,7 @@ # define SHA512_H 1 # include - -# if HAVE_INTTYPES_H -# include -# endif -# if HAVE_STDINT_H || _LIBC -# include -# endif +# include /* Structure to save state of computation between the single steps. */ struct sha512_ctx @@ -35,7 +29,7 @@ struct sha512_ctx uint64_t total[2]; uint64_t buflen; - char buffer[256]; + uint64_t buffer[32]; };