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:
a60af3a
)
(struct sha512_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:39 +0000
(07:18 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 12 Jan 2006 07:18:39 +0000
(07:18 +0000)
don't need to worry about alignment.
lib/sha512.h
patch
|
blob
|
history
diff --git
a/lib/sha512.h
b/lib/sha512.h
index
3740de9
..
b90e71a
100644
(file)
--- a/
lib/sha512.h
+++ b/
lib/sha512.h
@@
-20,13
+20,7
@@
# define SHA512_H 1
# include <stdio.h>
-
-# if HAVE_INTTYPES_H
-# include <inttypes.h>
-# endif
-# if HAVE_STDINT_H || _LIBC
-# include <stdint.h>
-# endif
+# include <stdint.h>
/* 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
];
};