From a60af3a64fcf58fe4a5d824678b791a3092c6495 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 12 Jan 2006 07:18:13 +0000 Subject: (struct sha256_ctx): Use a word buffer, not a byte buffer, so that we don't need to worry about alignment. All uses changed. --- lib/sha256.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sha256.h b/lib/sha256.h index 11be3adf1..ccbe6cfd7 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]; }; -- cgit v1.2.3-54-g00ecf