From dc4e4b72c08bec44774447635d30d459765fe453 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Tue, 16 Nov 2021 12:12:49 +0000 Subject: [PATCH] Fix derive_input test ignoring parameter Fix derive_input test hardcoding key type instead of using test argument. Signed-off-by: Dave Rodgman --- tests/suites/test_suite_psa_crypto.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index 2eab8e50a..9ed142423 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -4464,7 +4464,7 @@ void derive_input( int alg_arg, if( output_key_type != PSA_KEY_TYPE_NONE ) { psa_reset_key_attributes( &attributes ); - psa_set_key_type( &attributes, PSA_KEY_TYPE_RAW_DATA ); + psa_set_key_type( &attributes, output_key_type ); psa_set_key_bits( &attributes, 8 ); actual_output_status = psa_key_derivation_output_key( &attributes, &operation,