Fix derive_input test ignoring parameter

Fix derive_input test hardcoding key type instead of using test argument.

Signed-off-by: Dave Rodgman <[email protected]>
This commit is contained in:
Dave Rodgman
2021-11-16 16:05:06 +00:00
parent 3f86a90261
commit 491d849ad1
+1 -1
View File
@@ -5934,7 +5934,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,