diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-07 16:07:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-07 16:07:31 +0200 |
commit | c65cda9f1761a19eac33a2e9d1e16599472ae067 (patch) | |
tree | 7248789cf6b8cbab507d685e680a3553c99d6ed3 /libsha2.h | |
parent | Bump year (diff) | |
download | libsha2-c65cda9f1761a19eac33a2e9d1e16599472ae067.tar.gz libsha2-c65cda9f1761a19eac33a2e9d1e16599472ae067.tar.bz2 libsha2-c65cda9f1761a19eac33a2e9d1e16599472ae067.tar.xz |
Use uint_leastN_t instead of uintN_t
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsha2.h')
-rw-r--r-- | libsha2.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -66,12 +66,12 @@ struct libsha2_state { /** * For 32-bit algorithms */ - uint32_t b32[64]; + uint_least32_t b32[64]; /** * For 64-bit algorithms */ - uint64_t b64[80]; + uint_least64_t b64[80]; } k; /** @@ -83,12 +83,12 @@ struct libsha2_state { /** * For 32-bit algorithms */ - uint32_t b32[64]; + uint_least32_t b32[64]; /** * For 64-bit algorithms */ - uint64_t b64[80]; + uint_least64_t b64[80]; } w; /** @@ -98,12 +98,12 @@ struct libsha2_state { /** * For 32-bit algorithms */ - uint32_t b32[8]; + uint_least32_t b32[8]; /** * For 64-bit algorithms */ - uint64_t b64[8]; + uint_least64_t b64[8]; } h; /** @@ -115,12 +115,12 @@ struct libsha2_state { /** * For 32-bit algorithms */ - uint32_t b32[8]; + uint_least32_t b32[8]; /** * For 64-bit algorithms */ - uint64_t b64[8]; + uint_least64_t b64[8]; } work_h; /** @@ -153,6 +153,7 @@ struct libsha2_state { * `explicit_bzero` (or `memset`) when you are done. */ struct libsha2_hmac_state { + /** * State of the underlaying hash function */ |