diff options
author | Paul Selkirk <paul@psgd.org> | 2021-06-07 15:47:39 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2021-06-07 15:47:39 -0400 |
commit | d0d651241fd66d9d56addaf331d153b933134b06 (patch) | |
tree | 91133960a8b8cc0ad8f79b30845cccc8cd6af91e /hal_internal.h | |
parent | 8ef2a4e5f54c8623c98c396e378ec093629b849b (diff) |
Add mode bits for the various flavors of SHA-3, so that the softwaresha3_mode
driver doesn't have to know that the core's internal block size is
actually 1600 bits.
Diffstat (limited to 'hal_internal.h')
-rw-r--r-- | hal_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hal_internal.h b/hal_internal.h index d757027..1724807 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -156,7 +156,7 @@ extern hal_error_t hal_free_static_memory(const void * const ptr); * Longest hash block and digest we support at the moment. */ -#define HAL_MAX_HASH_BLOCK_LENGTH SHA3_STATE_LEN +#define HAL_MAX_HASH_BLOCK_LENGTH SHA3_224_BLOCK_LEN #define HAL_MAX_HASH_DIGEST_LENGTH SHA3_512_DIGEST_LEN #define HAL_MAX_HASH_STATE_LENGTH SHA3_STATE_LEN |