From b088a900f421317eff6b1a3e6e2cc04568e702a9 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Tue, 7 Jun 2022 15:34:18 +0200 Subject: [PATCH] test_suite_psa_crypto_storage_format: disable KA(ECDH,HKDF_EXTRACT/EXPAND...) test cases Signed-off-by: Przemek Stekiel --- tests/suites/test_suite_psa_crypto_storage_format.function | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/suites/test_suite_psa_crypto_storage_format.function b/tests/suites/test_suite_psa_crypto_storage_format.function index c52dae1882..14d7d80f13 100644 --- a/tests/suites/test_suite_psa_crypto_storage_format.function +++ b/tests/suites/test_suite_psa_crypto_storage_format.function @@ -151,6 +151,11 @@ static int can_exercise( const psa_key_attributes_t *attributes ) PSA_ALG_NONE; psa_key_usage_t usage = psa_get_key_usage_flags( attributes ); + /* Disable KA(ECDH,HKDF_EXTRACT/EXPAND...) test cases. */ + if( PSA_ALG_IS_KEY_AGREEMENT( alg ) && + ( PSA_ALG_HKDF_EXTRACT( alg ) || PSA_ALG_HKDF_EXPAND( alg ) ) ) + return 0; + #if defined(MBEDTLS_TEST_LIBTESTDRIVER1) /* We test some configurations using drivers where the driver doesn't * support certain hash algorithms, but declares that it supports