projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25962cd
)
(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
author
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 12 Jan 2006 07:18:13 +0000
(07:18 +0000)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/lib/sha256.h
b/lib/sha256.h
index
11be3ad
..
ccbe6cf
100644
(file)
--- 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
];
};