From a5df584d87a3bf6f929a60dba84906eb0f886cd3 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Fri, 16 Sep 2022 11:27:57 +0800 Subject: [PATCH] fix build fail for test_psa_crypto_config_accel_hash_use_psa Signed-off-by: Jerry Yu --- library/ssl_tls13_keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/ssl_tls13_keys.c b/library/ssl_tls13_keys.c index 28090ebcb..0f9c07ada 100644 --- a/library/ssl_tls13_keys.c +++ b/library/ssl_tls13_keys.c @@ -1537,7 +1537,8 @@ int mbedtls_ssl_tls13_compute_resumption_master_secret( mbedtls_ssl_context *ssl MBEDTLS_SSL_DEBUG_BUF( 4, "Resumption master secret", ssl->session_negotiate->app_secrets.resumption_master_secret, - mbedtls_md_get_size( mbedtls_md_info_from_type( md_type ) ) ); + PSA_HASH_LENGTH( + PSA_ALG_HMAC( mbedtls_hash_info_psa_from_md( md_type ) ) ) ); MBEDTLS_SSL_DEBUG_MSG( 2,