mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
(struct sha512_ctx): Use a word buffer, not a byte buffer, so that we
don't need to worry about alignment.
This commit is contained in:
parent
a60af3a64f
commit
3f83336726
10
lib/sha512.h
10
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];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user