Align names to use "opaque" only everywhere
It's better for names in the API to describe the "what" (opaque keys) rather
than the "how" (using PSA), at least since we don't intend to have multiple
function doing the same "what" in different ways in the foreseeable future.
diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function
index 563fa44..bf87b2b 100644
--- a/tests/suites/test_suite_pk.function
+++ b/tests/suites/test_suite_pk.function
@@ -114,7 +114,7 @@
mbedtls_pk_context pk, pk2;
psa_key_slot_t key;
- const char * const name = "Opaque (PSA)";
+ const char * const name = "Opaque";
const size_t bitlen = 256; /* harcoded in genkey() */
mbedtls_md_type_t md_alg = MBEDTLS_MD_NONE;
@@ -125,7 +125,7 @@
mbedtls_pk_init( &pk );
mbedtls_pk_init( &pk2 );
- TEST_ASSERT( mbedtls_pk_setup_psa( &pk, 0 ) ==
+ TEST_ASSERT( mbedtls_pk_setup_opaque( &pk, 0 ) ==
MBEDTLS_ERR_PK_BAD_INPUT_DATA );
mbedtls_pk_free( &pk );
@@ -134,9 +134,9 @@
key = pk_psa_genkey();
TEST_ASSERT( key != 0 );
- TEST_ASSERT( mbedtls_pk_setup_psa( &pk, key ) == 0 );
+ TEST_ASSERT( mbedtls_pk_setup_opaque( &pk, key ) == 0 );
- TEST_ASSERT( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_OPAQUE_PSA );
+ TEST_ASSERT( mbedtls_pk_get_type( &pk ) == MBEDTLS_PK_OPAQUE );
TEST_ASSERT( strcmp( mbedtls_pk_get_name( &pk), name ) == 0 );
TEST_ASSERT( mbedtls_pk_get_bitlen( &pk ) == bitlen );
@@ -797,7 +797,7 @@
key = pk_psa_genkey();
TEST_ASSERT( key != 0 );
- TEST_ASSERT( mbedtls_pk_setup_psa( &pk, key ) == 0 );
+ TEST_ASSERT( mbedtls_pk_setup_opaque( &pk, key ) == 0 );
TEST_ASSERT( mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256,
hash, sizeof hash, sig, &sig_len,