diff --git a/library/hash_info.c b/library/hash_info.c index 783fb2642..8daa4d0bc 100644 --- a/library/hash_info.c +++ b/library/hash_info.c @@ -55,18 +55,6 @@ static const hash_entry hash_table[] = { { PSA_ALG_NONE, MBEDTLS_MD_NONE, 0, 0 }, }; -/* Get block size from MD type */ -unsigned char mbedtls_hash_info_get_block_size(mbedtls_md_type_t md_type) -{ - const hash_entry *entry = hash_table; - while (entry->md_type != MBEDTLS_MD_NONE && - entry->md_type != md_type) { - entry++; - } - - return entry->block_size; -} - /* Get PSA from MD */ psa_algorithm_t mbedtls_hash_info_psa_from_md(mbedtls_md_type_t md_type) { diff --git a/library/hash_info.h b/library/hash_info.h index 84d3d7143..1dd206e70 100644 --- a/library/hash_info.h +++ b/library/hash_info.h @@ -36,17 +36,6 @@ #include "psa/crypto.h" #include "mbedtls/platform_util.h" -/** Get the block size of the given hash type from its MD type. - * - * \note To get the output length from the PSA alg, use - * \c PSA_HASH_BLOCK_LENGTH(). - * - * \param md_type The hash MD type. - * - * \return The block size in bytes, or 0 if not known. - */ -unsigned char mbedtls_hash_info_get_block_size(mbedtls_md_type_t md_type); - /** Get the PSA alg from the MD type. * * \param md_type The hash MD type.