Lines Matching refs:data
528 if( slot->key.data != NULL ) in psa_allocate_buffer_to_slot()
531 slot->key.data = mbedtls_calloc( 1, buffer_length ); in psa_allocate_buffer_to_slot()
532 if( slot->key.data == NULL ) in psa_allocate_buffer_to_slot()
540 const uint8_t* data, in psa_copy_key_material_into_slot() argument
548 memcpy( slot->key.data, data, data_length ); in psa_copy_key_material_into_slot()
554 const uint8_t *data, size_t data_length, in psa_import_key_into_slot() argument
575 memcpy( key_buffer, data, data_length ); in psa_import_key_into_slot()
588 data, data_length, in psa_import_key_into_slot()
600 data, data_length, in psa_import_key_into_slot()
975 if( slot->key.data != NULL ) in psa_remove_key_data_from_memory()
976 mbedtls_platform_zeroize( slot->key.data, slot->key.bytes); in psa_remove_key_data_from_memory()
978 mbedtls_free( slot->key.data ); in psa_remove_key_data_from_memory()
979 slot->key.data = NULL; in psa_remove_key_data_from_memory()
1218 slot->key.data, in psa_get_key_attributes()
1262 uint8_t *data, in psa_export_key_buffer_internal() argument
1268 memcpy( data, key_buffer, key_buffer_size ); in psa_export_key_buffer_internal()
1269 memset( data + key_buffer_size, 0, in psa_export_key_buffer_internal()
1278 uint8_t *data, size_t data_size, size_t *data_length ) in psa_export_key_internal() argument
1288 data, data_size, data_length ) ); in psa_export_key_internal()
1300 uint8_t *data, in psa_export_key() argument
1333 slot->key.data, slot->key.bytes, in psa_export_key()
1334 data, data_size, data_length ); in psa_export_key()
1345 uint8_t *data, in psa_export_public_key_internal() argument
1358 data, data_size, data_length ) ); in psa_export_public_key_internal()
1368 data, in psa_export_public_key_internal()
1384 data, in psa_export_public_key_internal()
1404 uint8_t *data, in psa_export_public_key() argument
1439 &attributes, slot->key.data, slot->key.bytes, in psa_export_public_key()
1440 data, data_size, data_length ); in psa_export_public_key()
1714 psa_se_key_data_storage_t data; in psa_finish_key_creation() local
1720 sizeof( data.slot_number ), in psa_finish_key_creation()
1723 memcpy( &data.slot_number, &slot_number, sizeof( slot_number ) ); in psa_finish_key_creation()
1725 (uint8_t*) &data, in psa_finish_key_creation()
1726 sizeof( data ) ); in psa_finish_key_creation()
1734 slot->key.data, in psa_finish_key_creation()
1841 slot->key.data, in psa_validate_optional_attributes()
1886 const uint8_t *data, in psa_import_key() argument
1917 if( slot->key.data == NULL ) in psa_import_key()
1922 attributes, data, data_length, &storage_size ); in psa_import_key()
1933 data, data_length, in psa_import_key()
1934 slot->key.data, in psa_import_key()
2076 source_slot->key.data, in psa_copy_key()
2078 target_slot->key.data, in psa_copy_key()
2087 source_slot->key.data, in psa_copy_key()
2373 slot->key.data, in psa_mac_setup()
2381 slot->key.data, in psa_mac_setup()
2562 slot->key.data, slot->key.bytes, in psa_mac_compute_internal()
2710 &attributes, slot->key.data, slot->key.bytes, in psa_sign_internal()
2718 &attributes, slot->key.data, slot->key.bytes, in psa_sign_internal()
2774 &attributes, slot->key.data, slot->key.bytes, in psa_verify_internal()
2781 &attributes, slot->key.data, slot->key.bytes, in psa_verify_internal()
3080 slot->key.data, in psa_asymmetric_encrypt()
3188 slot->key.data, in psa_asymmetric_decrypt()
3309 slot->key.data, in psa_cipher_setup()
3315 slot->key.data, in psa_cipher_setup()
3561 &attributes, slot->key.data, slot->key.bytes, in psa_cipher_encrypt()
3610 &attributes, slot->key.data, slot->key.bytes, in psa_cipher_decrypt()
3704 &attributes, slot->key.data, slot->key.bytes, in psa_aead_encrypt()
3754 &attributes, slot->key.data, slot->key.bytes, in psa_aead_decrypt()
3817 slot->key.data, in psa_aead_setup()
3823 slot->key.data, in psa_aead_setup()
4685 static void psa_des_set_key_parity( uint8_t *data, size_t data_size ) in psa_des_set_key_parity() argument
4688 mbedtls_des_key_set_parity( data ); in psa_des_set_key_parity()
4690 mbedtls_des_key_set_parity( data + 8 ); in psa_des_set_key_parity()
4692 mbedtls_des_key_set_parity( data + 16 ); in psa_des_set_key_parity()
4701 uint8_t *data = NULL; in psa_generate_derived_key_internal() local
4710 data = mbedtls_calloc( 1, bytes ); in psa_generate_derived_key_internal()
4711 if( data == NULL ) in psa_generate_derived_key_internal()
4714 status = psa_key_derivation_output_bytes( operation, data, bytes ); in psa_generate_derived_key_internal()
4719 psa_des_set_key_parity( data, bytes ); in psa_generate_derived_key_internal()
4739 data, bytes, in psa_generate_derived_key_internal()
4740 slot->key.data, in psa_generate_derived_key_internal()
4747 mbedtls_free( data ); in psa_generate_derived_key_internal()
4886 const uint8_t *data, in psa_hkdf_input() argument
4899 data, data_length ); in psa_hkdf_input()
4919 data, data_length ); in psa_hkdf_input()
4943 memcpy( hkdf->info, data, data_length ); in psa_hkdf_input()
4956 const uint8_t *data, in psa_tls12_prf_set_seed() argument
4968 memcpy( prf->seed, data, data_length ); in psa_tls12_prf_set_seed()
4978 const uint8_t *data, in psa_tls12_prf_set_key() argument
4990 memcpy( prf->secret, data, data_length ); in psa_tls12_prf_set_key()
5000 const uint8_t *data, in psa_tls12_prf_set_label() argument
5012 memcpy( prf->label, data, data_length ); in psa_tls12_prf_set_label()
5023 const uint8_t *data, in psa_tls12_prf_input() argument
5029 return( psa_tls12_prf_set_seed( prf, data, data_length ) ); in psa_tls12_prf_input()
5031 return( psa_tls12_prf_set_key( prf, data, data_length ) ); in psa_tls12_prf_input()
5033 return( psa_tls12_prf_set_label( prf, data, data_length ) ); in psa_tls12_prf_input()
5044 const uint8_t *data, in psa_tls12_prf_psk_to_ms_set_key() argument
5067 memcpy( cur, data, data_length ); in psa_tls12_prf_psk_to_ms_set_key()
5079 const uint8_t *data, in psa_tls12_prf_psk_to_ms_input() argument
5085 data, data_length ) ); in psa_tls12_prf_psk_to_ms_input()
5088 return( psa_tls12_prf_input( prf, step, data, data_length ) ); in psa_tls12_prf_psk_to_ms_input()
5130 const uint8_t *data, in psa_key_derivation_input_internal() argument
5145 step, data, data_length ); in psa_key_derivation_input_internal()
5153 step, data, data_length ); in psa_key_derivation_input_internal()
5161 step, data, data_length ); in psa_key_derivation_input_internal()
5167 (void) data; in psa_key_derivation_input_internal()
5182 const uint8_t *data, in psa_key_derivation_input_bytes() argument
5187 data, data_length ) ); in psa_key_derivation_input_bytes()
5214 slot->key.data, in psa_key_derivation_input_key()
5303 private_key->key.data, in psa_key_agreement_raw_internal()
5733 if( slot->key.data == NULL ) in psa_generate_key()
5761 slot->key.data, slot->key.bytes, &slot->key.bytes ); in psa_generate_key()