summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-01-12 07:18:13 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-01-12 07:18:13 +0000
commita60af3a64fcf58fe4a5d824678b791a3092c6495 (patch)
treef7289144d5c017828f10ff24cb68d925a78ccfd3 /lib
parent25962cd48918be2a55d733eec6fe4ac26fdc79cd (diff)
downloadcoreutils-a60af3a64fcf58fe4a5d824678b791a3092c6495.tar.xz
(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
don't need to worry about alignment. All uses changed.
Diffstat (limited to 'lib')
-rw-r--r--lib/sha256.h4
1 files 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 <stdio.h>
-# include "md5.h"
+# include <stdint.h>
/* 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];
};