diff options
author | Niels Möller <nisse@lysator.liu.se> | 2018-10-10 19:44:32 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2019-02-06 14:19:35 +0100 |
commit | d85e39b5da8fc60bb6055720a1ddeaa31951da02 (patch) | |
tree | e6b24fd532e0966ed5e9b29f2c0290b813e3ddb1 /sha2.h | |
parent | 3185ed4d0cd9e083a490402559f09c8d274a5ee6 (diff) | |
download | nettle-d85e39b5da8fc60bb6055720a1ddeaa31951da02.tar.gz |
Move block buffer last in hash context structs.
Diffstat (limited to 'sha2.h')
-rw-r--r-- | sha2.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |