Make psa_get_mac_output_length testable and test it
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 9f014d0..a112ff4 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -564,9 +564,10 @@
* \p algorithm tries to truncate the MAC to a size which would be
* larger than the underlying algorithm's maximum output length.
*/
-static psa_status_t psa_get_mac_output_length( psa_algorithm_t algorithm,
- psa_key_type_t key_type,
- size_t *length )
+MBEDTLS_STATIC_TESTABLE psa_status_t psa_get_mac_output_length(
+ psa_algorithm_t algorithm,
+ psa_key_type_t key_type,
+ size_t *length )
{
/* Get the default length for the algorithm and key combination. None of the
* currently supported algorithms have a default output length dependent on