Home
last modified time | relevance | path

Searched refs:psa_type (Results 1 – 5 of 5) sorted by relevance

/mbedtls-latest/tests/include/test/
Dssl_helpers.h649 … &psa_type, &psa_bits), PSA_SUCCESS); \
650 TEST_EQUAL(psa_family_, PSA_KEY_TYPE_ECC_GET_FAMILY(psa_type)); \
659 &psa_type, &psa_bits), \
/mbedtls-latest/tests/src/
Dpsa_exercise_key.c1251 psa_key_type_t psa_type = psa_get_key_type(&psa_attributes); in mbedtls_test_key_consistency_psa_pk() local
1254 TEST_ASSERT(PSA_KEY_TYPE_IS_PUBLIC_KEY(psa_type) || in mbedtls_test_key_consistency_psa_pk()
1255 PSA_KEY_TYPE_IS_KEY_PAIR(psa_type)); in mbedtls_test_key_consistency_psa_pk()
1265 TEST_ASSERT(PSA_KEY_TYPE_IS_RSA(psa_type)); in mbedtls_test_key_consistency_psa_pk()
1280 TEST_ASSERT(PSA_KEY_TYPE_IS_ECC(psa_type)); in mbedtls_test_key_consistency_psa_pk()
1281 TEST_EQUAL(PSA_KEY_TYPE_ECC_GET_FAMILY(psa_type), pk->ec_family); in mbedtls_test_key_consistency_psa_pk()
1304 TEST_EQUAL(PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR(psa_type), in mbedtls_test_key_consistency_psa_pk()
/mbedtls-latest/tests/suites/
Dtest_suite_pk.function504 mbedtls_pk_context *pk, psa_key_type_t *psa_type)
514 *psa_type = PSA_KEY_TYPE_RSA_KEY_PAIR;
533 *psa_type = PSA_KEY_TYPE_ECC_KEY_PAIR(mbedtls_ecc_group_to_psa(grp_id, &bits));
539 PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR(*psa_type));
563 *psa_type = PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR(*psa_type);
1808 void pk_psa_sign(int psa_type, int bits, int rsa_padding)
1839 if (PSA_KEY_TYPE_IS_RSA(psa_type)) {
1847 if (PSA_KEY_TYPE_IS_ECC_KEY_PAIR(psa_type)) {
1848 ecp_grp_id = mbedtls_ecc_group_from_psa(psa_type, bits);
1865 if (PSA_KEY_TYPE_IS_ECC_KEY_PAIR(psa_type)) {
[all …]
Dtest_suite_ssl.function3553 psa_key_type_t psa_type = PSA_KEY_TYPE_NONE;
/mbedtls-latest/library/
Dpk.c739 psa_key_type_t psa_type = psa_get_key_type(attributes); in import_public_into_psa() local
753 if (psa_type != PSA_KEY_TYPE_RSA_PUBLIC_KEY) { in import_public_into_psa()
779 if (psa_type != PSA_KEY_TYPE_ECC_PUBLIC_KEY(pk->ec_family)) { in import_public_into_psa()
789 if (psa_type != PSA_KEY_TYPE_ECC_PUBLIC_KEY(from_family)) { in import_public_into_psa()
815 if (psa_type != PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR(old_type)) { in import_public_into_psa()