From 1c402a4217376e85236580803789dd8e98dabf94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 18 Jul 2022 12:46:30 +0200 Subject: [PATCH] Remove macro that's no longer used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was only used in test_suite_pk which was fixed to no longer compute hashes in a temporary buffer. Also, it's not entirely clear is this macro was really a good idea: perhaps it's better for each user to have an explicit #if defined(MBEDTSL_USE_PSA_CRYPTO) and use either MBEDTLS_MD_MAX_SIZE or PSA_HASH_MAX_SIZE in each branch of that #if. So, removing it for the time being. Signed-off-by: Manuel Pégourié-Gonnard --- library/use_psa_helpers.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/library/use_psa_helpers.h b/library/use_psa_helpers.h index e9a133590c..4f990a8447 100644 --- a/library/use_psa_helpers.h +++ b/library/use_psa_helpers.h @@ -57,11 +57,4 @@ #define MBEDTLS_USE_PSA_WANT_ALG_SHA_512 #endif -/* Hash information */ -#if defined(MBEDTLS_USE_PSA_CRYPTO) -#define MBEDTLS_USE_PSA_MD_MAX_SIZE PSA_HASH_MAX_SIZE -#else -#define MBEDTLS_USE_PSA_MD_MAX_SIZE MBEDTLS_MD_MAX_SIZE -#endif - #endif /* MBEDTLS_USE_PSA_HELPERS_H */