diff --git a/include/mbedtls/sha3.h b/include/mbedtls/sha3.h index 1fbcc7aa2f..8eb0268832 100644 --- a/include/mbedtls/sha3.h +++ b/include/mbedtls/sha3.h @@ -55,13 +55,6 @@ typedef enum { } mbedtls_sha3_id; struct mbedtls_sha3_context; -typedef struct mbedtls_sha3_family_functions { - mbedtls_sha3_id id; - - uint16_t r; - uint16_t olen; -} -mbedtls_sha3_family_functions; /** * \brief The SHA-3 context structure. diff --git a/library/sha3.c b/library/sha3.c index b8abf9d321..c5ce1c669f 100644 --- a/library/sha3.c +++ b/library/sha3.c @@ -38,6 +38,14 @@ #define XOR_BYTE 0x6 +typedef struct mbedtls_sha3_family_functions { + mbedtls_sha3_id id; + + uint16_t r; + uint16_t olen; +} +mbedtls_sha3_family_functions; + /* * List of supported SHA-3 families */