aboutsummaryrefslogtreecommitdiffstats
path: root/libsha2.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-07 16:07:31 +0200
committerMattias Andrée <maandree@kth.se>2022-07-07 16:07:31 +0200
commitc65cda9f1761a19eac33a2e9d1e16599472ae067 (patch)
tree7248789cf6b8cbab507d685e680a3553c99d6ed3 /libsha2.h
parentBump year (diff)
downloadlibsha2-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.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/libsha2.h b/libsha2.h
index 3cd19b9..87c8c20 100644
--- a/libsha2.h
+++ b/libsha2.h
@@ -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
*/