From e627bef2f88ebe08f0f894c8289392ae8c937013 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Mon, 29 May 2023 22:05:50 +0100 Subject: [PATCH] Use faster type for state index Signed-off-by: Dave Rodgman --- include/mbedtls/sha3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbedtls/sha3.h b/include/mbedtls/sha3.h index a153892003..1fbcc7aa2f 100644 --- a/include/mbedtls/sha3.h +++ b/include/mbedtls/sha3.h @@ -70,7 +70,7 @@ mbedtls_sha3_family_functions; */ typedef struct mbedtls_sha3_context { uint64_t state[25]; - uint8_t index; + uint32_t index; uint16_t olen; uint16_t max_block_size; }