summaryrefslogtreecommitdiff
path: root/sha2.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2018-10-10 19:44:32 +0200
committerNiels Möller <nisse@lysator.liu.se>2019-02-06 14:19:35 +0100
commitd85e39b5da8fc60bb6055720a1ddeaa31951da02 (patch)
treee6b24fd532e0966ed5e9b29f2c0290b813e3ddb1 /sha2.h
parent3185ed4d0cd9e083a490402559f09c8d274a5ee6 (diff)
downloadnettle-d85e39b5da8fc60bb6055720a1ddeaa31951da02.tar.gz
Move block buffer last in hash context structs.
Diffstat (limited to 'sha2.h')
-rw-r--r--sha2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha2.h b/sha2.h
index 7e02f186..ca8222a7 100644
--- a/sha2.h
+++ b/sha2.h
@@ -74,8 +74,8 @@ struct sha256_ctx
{
uint32_t state[_SHA256_DIGEST_LENGTH]; /* State variables */
uint64_t count; /* 64-bit block count */
- uint8_t block[SHA256_BLOCK_SIZE]; /* SHA256 data buffer */
unsigned int index; /* index into buffer */
+ uint8_t block[SHA256_BLOCK_SIZE]; /* SHA256 data buffer */
};
void
@@ -121,8 +121,8 @@ struct sha512_ctx
{
uint64_t state[_SHA512_DIGEST_LENGTH]; /* State variables */
uint64_t count_low, count_high; /* 128-bit block count */
- uint8_t block[SHA512_BLOCK_SIZE]; /* SHA512 data buffer */
unsigned int index; /* index into buffer */
+ uint8_t block[SHA512_BLOCK_SIZE]; /* SHA512 data buffer */
};
void