/mbedtls-development/tests/suites/ |
A D | test_suite_psa_crypto_attributes.function | 33 psa_set_key_id( &attributes, id ); 36 psa_set_key_algorithm( &attributes, alg ); 37 psa_set_key_type( &attributes, type ); 38 psa_set_key_bits( &attributes, bits ); 48 psa_reset_key_attributes( &attributes ); 79 psa_set_key_id( &attributes, id1 ); 83 psa_set_key_id( &attributes, id2 ); 102 psa_set_key_slot_number( &attributes, 0 ); 112 psa_clear_key_slot_number( &attributes ); 117 psa_clear_key_slot_number( &attributes ); [all …]
|
A D | test_suite_psa_crypto_persistent_key.function | 53 psa_set_key_type( &attributes, key_type ); 54 psa_set_key_bits( &attributes, key_bits ); 128 psa_set_key_id( &attributes, key_id ); 158 psa_set_key_id( &attributes, key_id ); 183 psa_set_key_id( &attributes, key_id ); 208 psa_set_key_id( &attributes, key_id ); 209 psa_set_key_type( &attributes, type ); 229 psa_reset_key_attributes( &attributes ); 246 psa_reset_key_attributes( &attributes ); 270 psa_set_key_id( &attributes, key_id ); [all …]
|
A D | test_suite_psa_crypto_slot_management.function | 140 psa_set_key_type( &attributes, type ); 146 psa_reset_key_attributes( &attributes ); 170 psa_reset_key_attributes( &attributes ); 189 psa_reset_key_attributes( &attributes ); 226 psa_set_key_id( &attributes, id ); 228 psa_set_key_type( &attributes, type ); 373 psa_set_key_id( &attributes, id ); 463 * PSA key attributes APIs thus accessing to the attributes 466 attributes.core.id = id; 469 psa_set_key_id( &attributes, id ); [all …]
|
A D | test_suite_psa_crypto_generate_key.function | 18 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 27 psa_set_key_type( &attributes, key_type ); 28 psa_set_key_bits( &attributes, bits ); 29 TEST_EQUAL( psa_generate_key( &attributes, &key_id ), 32 // Verify attributes of the created key on success 35 psa_reset_key_attributes(&attributes); 38 TEST_EQUAL( psa_get_key_usage_flags( &attributes ), 0 ); 39 TEST_EQUAL( psa_get_key_algorithm( &attributes ), 0 ); 40 TEST_EQUAL( psa_get_key_type( &attributes ), key_type ); 41 TEST_EQUAL( psa_get_key_bits( &attributes ), bits ); [all …]
|
A D | test_suite_psa_crypto_se_driver_hal_mocks.function | 24 psa_key_attributes_t attributes; 33 psa_key_attributes_t attributes; 146 mock_generate_data.attributes = *attributes; 166 mock_import_data.attributes = *attributes; 258 (void) attributes; 353 psa_set_key_id( &attributes, id ); 424 psa_set_key_id( &attributes, id ); 474 psa_set_key_id( &attributes, id ); 544 psa_set_key_id( &attributes, id ); 601 psa_set_key_id( &attributes, id ); [all …]
|
A D | test_suite_psa_crypto_storage_format.function | 173 psa_set_key_lifetime( &attributes, lifetime ); 174 psa_set_key_id( &attributes, key_id ); 175 psa_set_key_type( &attributes, type ); 176 psa_set_key_bits( &attributes, bits ); 178 psa_set_key_algorithm( &attributes, alg ); 189 psa_reset_key_attributes( &attributes ); 218 psa_set_key_id( &attributes, key_id ); 219 psa_set_key_type( &attributes, type ); 220 psa_set_key_bits( &attributes, bits ); 222 psa_set_key_algorithm( &attributes, alg ); [all …]
|
A D | test_suite_psa_crypto_attributes.data | 1 PSA key attributes structure 5 PSA key attributes: id only 8 PSA key attributes: lifetime=3 only 11 PSA key attributes: id then back to volatile 14 PSA key attributes: id then back to non local volatile 17 PSA key attributes: id then lifetime 20 PSA key attributes: lifetime then id 23 PSA key attributes: non local volatile lifetime then id 26 PSA key attributes: slot number
|
A D | test_suite_psa_crypto.function | 217 psa_set_key_id( &attributes, key_id ); 246 psa_reset_key_attributes( &attributes ); 628 psa_set_key_type( &attributes, type ); 632 status = psa_import_key( &attributes, 676 psa_set_key_type( &attributes, type ); 728 psa_set_key_type( &attributes, type ); 786 psa_set_key_type( &attributes, type ); 832 psa_set_key_type( &attributes, type ); 934 psa_set_key_type( &attributes, type ); 1654 /* Prepare the target attributes. */ [all …]
|
A D | test_suite_psa_crypto_driver_wrappers.function | 30 psa_set_key_type( &attributes, 34 psa_import_key( &attributes, 88 psa_set_key_type( &attributes, 92 psa_import_key( &attributes, 102 psa_import_key( &attributes, 144 psa_set_key_type( &attributes, 148 psa_import_key( &attributes, 208 psa_import_key( &attributes, 218 psa_import_key( &attributes, 260 psa_set_key_type( &attributes, [all …]
|
A D | test_suite_psa_crypto_se_driver_hal.function | 139 (void) attributes; 160 (void) attributes; 182 (void) attributes; 200 (void) attributes; 410 (void) attributes; 435 (void) attributes; 887 psa_set_key_id( &attributes, id ); 949 psa_set_key_bits( &attributes, 1020 psa_set_key_id( &attributes, id ); 1106 psa_set_key_id( &attributes, id ); [all …]
|
/mbedtls-development/library/ |
A D | psa_crypto_client.c | 35 mbedtls_free( attributes->domain_parameters ); in psa_reset_key_attributes() 36 memset( attributes, 0, sizeof( *attributes ) ); in psa_reset_key_attributes() 56 if( attributes->domain_parameters != NULL ) in psa_set_key_domain_parameters() 59 attributes->domain_parameters = NULL; in psa_set_key_domain_parameters() 60 attributes->domain_parameters_size = 0; in psa_set_key_domain_parameters() 63 attributes->domain_parameters = copy; in psa_set_key_domain_parameters() 64 attributes->domain_parameters_size = data_length; in psa_set_key_domain_parameters() 65 attributes->core.type = type; in psa_set_key_domain_parameters() 70 const psa_key_attributes_t *attributes, in psa_get_key_domain_parameters() argument 76 if( attributes->domain_parameters_size != 0 ) in psa_get_key_domain_parameters() [all …]
|
A D | psa_crypto_driver_wrappers.c | 94 attributes, in psa_driver_wrapper_sign_message() 115 attributes, in psa_driver_wrapper_sign_message() 168 attributes, in psa_driver_wrapper_verify_message() 188 attributes, in psa_driver_wrapper_verify_message() 1016 attributes, in psa_driver_wrapper_cipher_encrypt_setup() 1049 attributes, in psa_driver_wrapper_cipher_encrypt_setup() 1088 attributes, in psa_driver_wrapper_cipher_decrypt_setup() 2035 attributes, in psa_driver_wrapper_mac_sign_setup() 2066 attributes, in psa_driver_wrapper_mac_sign_setup() 2106 attributes, in psa_driver_wrapper_mac_verify_setup() [all …]
|
A D | psa_crypto_ecp.c | 194 const psa_key_attributes_t *attributes, in ecp_import_key() argument 285 const psa_key_attributes_t *attributes, in ecp_export_public_key() argument 293 attributes->core.type, attributes->core.bits, in ecp_export_public_key() 313 const psa_key_attributes_t *attributes, in ecp_generate_key() argument 363 const psa_key_attributes_t *attributes, in ecdsa_sign_hash() argument 545 return( ecdsa_sign_hash( attributes, in mbedtls_psa_ecdsa_sign_hash() 557 return( ecdsa_verify_hash( attributes, in mbedtls_psa_ecdsa_verify_hash() 621 return( ecdsa_sign_hash( attributes, in mbedtls_transparent_test_driver_ecdsa_sign_hash() 626 (void)attributes; in mbedtls_transparent_test_driver_ecdsa_sign_hash() 646 return( ecdsa_verify_hash( attributes, in mbedtls_transparent_test_driver_ecdsa_verify_hash() [all …]
|
A D | psa_crypto_rsa.c | 160 const psa_key_attributes_t *attributes, in rsa_import_key() argument 252 const psa_key_attributes_t *attributes, in rsa_export_public_key() argument 307 const psa_key_attributes_t *attributes, in rsa_generate_key() argument 377 const psa_key_attributes_t *attributes, in rsa_sign_hash() argument 478 const psa_key_attributes_t *attributes, in rsa_verify_hash() argument 608 attributes, in mbedtls_psa_rsa_sign_hash() 621 attributes, in mbedtls_psa_rsa_verify_hash() 682 attributes, in mbedtls_transparent_test_driver_rsa_sign_hash() 687 (void)attributes; in mbedtls_transparent_test_driver_rsa_sign_hash() 709 attributes, in mbedtls_transparent_test_driver_rsa_verify_hash() [all …]
|
A D | psa_crypto_driver_wrappers.h | 32 const psa_key_attributes_t *attributes, 43 const psa_key_attributes_t *attributes, 53 const psa_key_attributes_t *attributes, 59 const psa_key_attributes_t *attributes, 69 const psa_key_attributes_t *attributes, 75 const psa_key_attributes_t *attributes, 80 const psa_key_attributes_t *attributes, 85 const psa_key_attributes_t *attributes, 89 const psa_key_attributes_t *attributes, 100 psa_key_attributes_t *attributes, [all …]
|
A D | psa_crypto_ecp.h | 78 const psa_key_attributes_t *attributes, 122 const psa_key_attributes_t *attributes, 146 const psa_key_attributes_t *attributes, 182 const psa_key_attributes_t *attributes, 217 const psa_key_attributes_t *attributes, 228 const psa_key_attributes_t *attributes, 234 const psa_key_attributes_t *attributes, 239 const psa_key_attributes_t *attributes, 243 const psa_key_attributes_t *attributes, 249 const psa_key_attributes_t *attributes,
|
A D | psa_crypto_rsa.h | 69 const psa_key_attributes_t *attributes, 113 const psa_key_attributes_t *attributes, 137 const psa_key_attributes_t *attributes, 174 const psa_key_attributes_t *attributes, 210 const psa_key_attributes_t *attributes, 222 const psa_key_attributes_t *attributes, 228 const psa_key_attributes_t *attributes, 233 const psa_key_attributes_t *attributes, 237 const psa_key_attributes_t *attributes, 243 const psa_key_attributes_t *attributes,
|
A D | psa_crypto_mac.c | 184 psa_get_key_type( attributes ), in cmac_setup() 185 psa_get_key_bits( attributes ), in cmac_setup() 323 (void) attributes; in mac_setup() 451 const psa_key_attributes_t *attributes, in mac_compute() argument 491 const psa_key_attributes_t *attributes, in mbedtls_psa_mac_compute() argument 508 const psa_key_attributes_t *attributes, in mbedtls_psa_mac_sign_setup() argument 519 const psa_key_attributes_t *attributes, in mbedtls_psa_mac_verify_setup() argument 584 const psa_key_attributes_t *attributes, in mbedtls_transparent_test_driver_mac_compute() argument 682 (void) attributes; in mbedtls_opaque_test_driver_mac_compute() 703 (void) attributes; in mbedtls_opaque_test_driver_mac_sign_setup() [all …]
|
/mbedtls-development/tests/src/drivers/ |
A D | test_driver_key_management.c | 194 (void)attributes; in mbedtls_test_transparent_generate_key() 203 (void) attributes; in mbedtls_test_opaque_generate_key() 232 attributes, in mbedtls_test_transparent_import_key() 244 attributes, in mbedtls_test_transparent_import_key() 306 attributes, in mbedtls_test_opaque_import_key() 321 attributes, in mbedtls_test_opaque_import_key() 450 attributes, in mbedtls_test_transparent_export_public_key() 579 attributes, in mbedtls_test_opaque_get_builtin_key() 594 attributes, in mbedtls_test_opaque_get_builtin_key() 598 attributes, in mbedtls_test_opaque_get_builtin_key() [all …]
|
A D | test_driver_signature.c | 47 const psa_key_attributes_t *attributes, in sign_hash() argument 62 attributes, in sign_hash() 84 attributes, in sign_hash() 98 (void)attributes; in sign_hash() 126 attributes, in verify_hash() 142 attributes, in verify_hash() 156 (void)attributes; in verify_hash() 224 (void) attributes; in mbedtls_test_opaque_signature_sign_message() 278 (void) attributes; in mbedtls_test_opaque_signature_verify_message() 324 (void) attributes; in mbedtls_test_opaque_signature_sign_hash() [all …]
|
A D | test_driver_cipher.c | 39 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_encrypt() argument 76 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_decrypt() argument 112 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_encrypt_setup() argument 133 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_decrypt_setup() argument 242 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_cipher_encrypt() argument 248 (void) attributes; in mbedtls_test_opaque_cipher_encrypt() 261 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_cipher_decrypt() argument 267 (void) attributes; in mbedtls_test_opaque_cipher_decrypt() 281 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_cipher_encrypt_setup() argument 286 (void) attributes; in mbedtls_test_opaque_cipher_encrypt_setup() [all …]
|
/mbedtls-development/include/psa/ |
A D | crypto_struct.h | 359 static inline void psa_set_key_id( psa_key_attributes_t *attributes, in psa_set_key_id() argument 364 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id) = key; in psa_set_key_id() 376 const psa_key_attributes_t *attributes ) in psa_get_key_id() argument 378 return( attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id) ); in psa_get_key_id() 398 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id) = 0; in psa_set_key_lifetime() 404 const psa_key_attributes_t *attributes ) in psa_get_key_lifetime() argument 426 const psa_key_attributes_t *attributes ) in psa_get_key_usage_flags() argument 438 const psa_key_attributes_t *attributes ) in psa_get_key_algorithm() argument 453 if( attributes->MBEDTLS_PRIVATE(domain_parameters) == NULL ) in psa_set_key_type() 469 const psa_key_attributes_t *attributes ) in psa_get_key_type() argument [all …]
|
/mbedtls-development/tests/src/ |
A D | psa_exercise_key.c | 52 lifetime = psa_get_key_lifetime( &attributes ); in check_key_attributes_sanity() 53 id = psa_get_key_id( &attributes ); in check_key_attributes_sanity() 54 type = psa_get_key_type( &attributes ); in check_key_attributes_sanity() 55 bits = psa_get_key_bits( &attributes ); in check_key_attributes_sanity() 111 psa_reset_key_attributes( &attributes ); in check_key_attributes_sanity() 534 psa_reset_key_attributes( &attributes ); in mbedtls_test_psa_key_agreement_with_self() 586 psa_reset_key_attributes( &attributes ); in mbedtls_test_psa_raw_key_agreement_with_self() 824 psa_get_key_type( &attributes ), psa_get_key_bits( &attributes ), in exercise_export_key() 832 psa_reset_key_attributes( &attributes ); in exercise_export_key() 863 psa_get_key_type( &attributes ) ); in exercise_export_public_key() [all …]
|
/mbedtls-development/programs/psa/ |
A D | key_ladder_demo.c | 201 psa_set_key_usage_flags( &attributes, in generate() 203 psa_set_key_algorithm( &attributes, KDF_ALG ); in generate() 207 PSA_CHECK( psa_generate_key( &attributes, &key ) ); in generate() 246 psa_set_key_usage_flags( &attributes, usage ); in import_key_from_file() 247 psa_set_key_algorithm( &attributes, alg ); in import_key_from_file() 279 psa_set_key_usage_flags( &attributes, in derive_key_ladder() 281 psa_set_key_algorithm( &attributes, KDF_ALG ); in derive_key_ladder() 345 psa_set_key_usage_flags( &attributes, usage ); in derive_wrapping_key() 347 psa_set_key_type( &attributes, PSA_KEY_TYPE_AES ); in derive_wrapping_key() 387 key_type = psa_get_key_type( &attributes ); in wrap_data() [all …]
|
/mbedtls-development/tests/include/test/drivers/ |
A D | key_management.h | 70 const psa_key_attributes_t *attributes, 74 const psa_key_attributes_t *attributes, 78 const psa_key_attributes_t *attributes, 83 const psa_key_attributes_t *attributes, 88 const psa_key_attributes_t *attributes, 93 const psa_key_attributes_t *attributes, 102 const psa_key_attributes_t *attributes, 112 psa_key_attributes_t *attributes, 116 psa_key_attributes_t *attributes,
|