Commit 60b3090a authored by Jon Griffiths's avatar Jon Griffiths

sha256: Make our u32 and u8 fields the same size

These are just aliases to a buffer: its customary for these to
have the same size, and makes sizeof() consistent in case anyone
decides to use the members instead of the containing union.
Signed-off-by: default avatarJon Griffiths <jon_p_griffiths@yahoo.com>
parent cedcaa1b
......@@ -49,7 +49,7 @@ struct sha256_ctx {
uint32_t s[8];
uint64_t bytes;
union {
uint32_t u32[8];
uint32_t u32[16];
unsigned char u8[64];
} buf;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment