/mbedtls-development/library/ |
A D | psa_crypto_storage.c | 247 uint8_t key_data[]; member 267 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 307 *key_data = NULL; in psa_parse_key_data_from_storage() 311 *key_data = mbedtls_calloc( 1, *key_data_length ); in psa_parse_key_data_from_storage() 312 if( *key_data == NULL ) in psa_parse_key_data_from_storage() 314 memcpy( *key_data, storage_format->key_data, *key_data_length ); in psa_parse_key_data_from_storage() 357 void psa_free_persistent_key_data( uint8_t *key_data, size_t key_data_length ) in psa_free_persistent_key_data() argument 359 if( key_data != NULL ) in psa_free_persistent_key_data() 361 mbedtls_platform_zeroize( key_data, key_data_length ); in psa_free_persistent_key_data() [all …]
|
A 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,
|
A D | psa_crypto_slot_management.c | 240 uint8_t *key_data = NULL; in psa_load_persistent_key_into_slot() local 244 &key_data, &key_data_length ); in psa_load_persistent_key_into_slot() 262 data = (psa_se_key_data_storage_t *) key_data; in psa_load_persistent_key_into_slot() 269 status = psa_copy_key_material_into_slot( slot, key_data, key_data_length ); in psa_load_persistent_key_into_slot() 272 psa_free_persistent_key_data( key_data, key_data_length ); in psa_load_persistent_key_into_slot()
|
A D | psa_crypto_core.h | 83 struct key_data struct
|
/mbedtls-development/tests/suites/ |
A D | test_suite_psa_crypto.function | 367 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1140 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1198 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1257 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1317 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1402 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1471 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1523 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1556 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1604 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, [all …]
|
A D | test_suite_psa_crypto_persistent_key.function | 31 uint8_t key_data[]; 42 void format_storage_data_check( data_t *key_data, 49 key_data->len + sizeof( psa_persistent_key_storage_format ); 60 psa_format_key_data_for_storage( key_data->x, key_data->len, 83 uint8_t *key_data = NULL; 89 &key_data, &key_data_length, 109 key_data, key_data_length ); 112 mbedtls_free( key_data );
|
A D | test_suite_psa_crypto_entropy.function | 69 void external_rng_failure_sign( int key_type, data_t *key_data, int alg, 91 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 102 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len,
|
A D | test_suite_psa_crypto_driver_wrappers.function | 457 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 559 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 691 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 816 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 872 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1044 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1113 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1152 data_t *key_data, 1181 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 1279 data_t *key_data, [all …]
|
A D | test_suite_psa_crypto_slot_management.function | 116 int type_arg, data_t *key_data, 141 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 198 int type_arg, data_t *key_data, 232 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len, 308 ASSERT_ALLOC( reexported, key_data->len ); 311 PSA_ASSERT( psa_export_key( id, reexported, key_data->len, 313 ASSERT_COMPARE( key_data->x, key_data->len, 319 key_data->len, &reexported_length ),
|
A D | test_suite_pk.function | 293 void valid_parameters_pkwrite( data_t *key_data ) 300 key_data->x, key_data->len, NULL, 0,
|
/mbedtls-development/programs/psa/ |
A D | key_ladder_demo.c | 172 uint8_t key_data[KEY_SIZE_BYTES]; in save_key() local 177 key_data, sizeof( key_data ), in save_key() 180 SYS_CHECK( fwrite( key_data, 1, key_size, key_file ) == key_size ); in save_key() 228 uint8_t key_data[KEY_SIZE_BYTES]; in import_key_from_file() local 234 SYS_CHECK( ( key_size = fread( key_data, 1, sizeof( key_data ), in import_key_from_file() 239 (unsigned) sizeof( key_data ) ); in import_key_from_file() 249 PSA_CHECK( psa_import_key( &attributes, key_data, key_size, master_key ) ); in import_key_from_file() 253 mbedtls_platform_zeroize( key_data, sizeof( key_data ) ); in import_key_from_file()
|
/mbedtls-development/docs/ |
A D | getting_started.md | 759 static const uint8_t key_data[] = { 800 status = psa_import_key(&attributes, key_data, sizeof(key_data), &key);
|