add non-regression tests for export public/non public key
diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function
index 48c6228..e7a4ea5 100644
--- a/tests/suites/test_suite_psa_crypto.function
+++ b/tests/suites/test_suite_psa_crypto.function
@@ -49,7 +49,10 @@
/* END_CASE */
/* BEGIN_CASE */
-void import_export( char *hex, int type_arg,
+void import_export( char *hex,
+ int type_arg,
+ int alg_arg,
+ int usage_arg,
int expected_bits,
int export_size_delta,
int expected_export_status,
@@ -84,8 +87,7 @@
psa_key_policy_init( &policy );
- psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_EXPORT,
- PSA_ALG_VENDOR_FLAG );
+ psa_key_policy_set_usage( &policy, usage_arg, alg_arg );
TEST_ASSERT( psa_set_key_policy( slot, &policy ) == PSA_SUCCESS );
@@ -531,6 +533,7 @@
/* BEGIN_CASE */
void import_export_public_key( char *hex,
int type_arg,
+ int alg_arg,
int expected_bits,
int public_key_expected_length,
int expected_export_status )
@@ -558,7 +561,7 @@
psa_key_policy_init( &policy );
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_EXPORT,
- PSA_ALG_VENDOR_FLAG );
+ alg_arg );
TEST_ASSERT( psa_set_key_policy( slot, &policy ) == PSA_SUCCESS );