Remove unused function
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/library/hash_info.c b/library/hash_info.c
index 783fb26..8daa4d0 100644
--- a/library/hash_info.c
+++ b/library/hash_info.c
@@ -55,18 +55,6 @@
{ 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 84d3d71..1dd206e 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.