From d85e39b5da8fc60bb6055720a1ddeaa31951da02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 10 Oct 2018 19:44:32 +0200 Subject: Move block buffer last in hash context structs. --- sha2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sha2.h') 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 -- cgit v1.2.1