(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Jan 2006 07:18:13 +0000 (07:18 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Jan 2006 07:18:13 +0000 (07:18 +0000)
 don't need to worry about alignment.  All uses changed.

lib/sha256.h

index 11be3ad..ccbe6cf 100644 (file)
@@ -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];
 };