/mbedtls-3.5.0/tests/suites/ |
D | test_suite_psa_crypto_op_fail.function | 72 void mac_fail(int key_type_arg, data_t *key_data, 93 key_data->x, key_data->len, 118 void cipher_fail(int key_type_arg, data_t *key_data, 139 key_data->x, key_data->len, 164 void aead_fail(int key_type_arg, data_t *key_data, 185 key_data->x, key_data->len, 212 void sign_fail(int key_type_arg, data_t *key_data, 240 key_data->x, key_data->len, 287 void asymmetric_encryption_fail(int key_type_arg, data_t *key_data, 308 key_data->x, key_data->len, [all …]
|
D | test_suite_psa_crypto.function | 325 * \param key_data The encryption / decryption key data 346 static int aead_multipart_internal_func(int key_type_arg, data_t *key_data, 396 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 441 MBEDTLS_TEST_PSA_SKIP_IF_ALT_AES_192(key_type, key_data->len * 8); 593 * \param key_data The encryption / decryption key data 605 static int mac_multipart_internal_func(int key_type_arg, data_t *key_data, 639 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 1801 data_t *key_data, 1824 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 1903 data_t *key_data, [all …]
|
D | test_suite_psa_crypto_persistent_key.function | 36 uint8_t key_data[]; 47 void format_storage_data_check(data_t *key_data, 54 key_data->len + sizeof(psa_persistent_key_storage_format); 65 psa_format_key_data_for_storage(key_data->x, key_data->len, 88 uint8_t *key_data = NULL; 94 &key_data, &key_data_length, 115 key_data, key_data_length); 118 mbedtls_free(key_data);
|
D | test_suite_psa_crypto_entropy.function | 71 void external_rng_failure_sign(int key_type, data_t *key_data, int alg, 93 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 104 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len,
|
D | test_suite_psa_crypto_driver_wrappers.function | 1028 data_t *key_data, 1058 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 1111 data_t *key_data, 1160 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 1239 data_t *key_data, 1288 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 1368 data_t *key_data, 1408 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 1439 data_t *key_data, data_t *iv, 1462 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, [all …]
|
D | test_suite_psa_crypto_slot_management.function | 111 int type_arg, data_t *key_data, 136 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 195 int type_arg, data_t *key_data, 229 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 306 ASSERT_ALLOC(reexported, key_data->len); 308 PSA_ASSERT(psa_export_key(id, reexported, key_data->len, 310 ASSERT_COMPARE(key_data->x, key_data->len, 314 key_data->len, &reexported_length),
|
D | test_suite_pk.function | 432 void valid_parameters_pkwrite(data_t *key_data) 439 key_data->x, key_data->len, NULL, 0,
|
/mbedtls-3.5.0/library/ |
D | psa_crypto_storage.c | 245 uint8_t key_data[]; member 266 memcpy(storage_format->key_data, data, data_length); in psa_format_key_data_for_storage() 280 uint8_t **key_data, in psa_parse_key_data_from_storage() argument 310 *key_data = NULL; in psa_parse_key_data_from_storage() 312 *key_data = mbedtls_calloc(1, *key_data_length); in psa_parse_key_data_from_storage() 313 if (*key_data == NULL) { in psa_parse_key_data_from_storage() 316 memcpy(*key_data, storage_format->key_data, *key_data_length); in psa_parse_key_data_from_storage() 363 void psa_free_persistent_key_data(uint8_t *key_data, size_t key_data_length) in psa_free_persistent_key_data() argument 365 if (key_data != NULL) { in psa_free_persistent_key_data() 366 mbedtls_platform_zeroize(key_data, key_data_length); in psa_free_persistent_key_data() [all …]
|
D | psa_crypto_slot_management.c | 230 uint8_t *key_data = NULL; in psa_load_persistent_key_into_slot() local 234 &key_data, &key_data_length); in psa_load_persistent_key_into_slot() 251 data = (psa_se_key_data_storage_t *) key_data; in psa_load_persistent_key_into_slot() 258 status = psa_copy_key_material_into_slot(slot, key_data, key_data_length); in psa_load_persistent_key_into_slot() 261 psa_free_persistent_key_data(key_data, key_data_length); in psa_load_persistent_key_into_slot()
|
D | psa_crypto_storage.h | 165 void psa_free_persistent_key_data(uint8_t *key_data, size_t key_data_length); 199 uint8_t **key_data,
|
D | psa_crypto_core.h | 95 struct key_data { struct
|
/mbedtls-3.5.0/programs/psa/ |
D | key_ladder_demo.c | 171 uint8_t key_data[KEY_SIZE_BYTES]; in save_key() local 176 key_data, sizeof(key_data), in save_key() 181 SYS_CHECK(fwrite(key_data, 1, key_size, key_file) == key_size); in save_key() 230 uint8_t key_data[KEY_SIZE_BYTES]; in import_key_from_file() local 238 SYS_CHECK((key_size = fread(key_data, 1, sizeof(key_data), in import_key_from_file() 242 (unsigned) sizeof(key_data)); in import_key_from_file() 252 PSA_CHECK(psa_import_key(&attributes, key_data, key_size, master_key)); in import_key_from_file() 257 mbedtls_platform_zeroize(key_data, sizeof(key_data)); in import_key_from_file()
|