/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/TestAL/pal/linux/ |
D | test_pal_file.c | 20 size_t data_size = 0; in Test_PalFetchDataFromFile() local 34 data_size++; in Test_PalFetchDataFromFile() 36 if (data_size > 0) { in Test_PalFetchDataFromFile() 37 *data_pp = malloc(data_size); in Test_PalFetchDataFromFile() 40 " of %s\n", (int)data_size, data_fname); in Test_PalFetchDataFromFile() 53 TEST_PRINTF_MESSAGE("Read %d B from %s\n", (int)data_size, data_fname); in Test_PalFetchDataFromFile() 55 return data_size; in Test_PalFetchDataFromFile()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/poly/ |
D | poly.c | 36 #define GET_FULL_DATA_BLOCKS_SIZE(data_size) \ argument 37 ((data_size/CC_POLY_BLOCK_SIZE_IN_BYTES)*CC_POLY_BLOCK_SIZE_IN_BYTES) 486 size_t data_size, in PolyUpdate() argument 494 if ((state == NULL) || (data == NULL && data_size != 0)) { in PolyUpdate() 500 if (data_size == 0) { in PolyUpdate() 508 if (data_size + state->msg_state_size < CC_POLY_BLOCK_SIZE_IN_BYTES) { in PolyUpdate() 509 for (int i=0; i<data_size; i++) { in PolyUpdate() 512 state->msg_state_size += data_size; in PolyUpdate() 520 if (data_to_add > data_size) { in PolyUpdate() 525 size_t num_of_zeros = data_to_add - data_size; in PolyUpdate() [all …]
|
D | poly.h | 113 size_t data_size,
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/internal_trusted_storage/ |
D | tfm_internal_trusted_storage.c | 141 size_t data_size, argument 175 memcpy(its_req_mngr_get_vec_base(), asset_data + data_offset, data_size); 180 its_req_mngr_write(asset_data + data_offset, data_size); 388 const size_t data_size, argument 399 status = tfm_its_crypt_data(client_id, &buffer_ptr, data_size); 407 data_size, offset, buffer_ptr); 511 size_t data_size, argument 522 status = its_flash_fs_file_read(get_fs_ctx(client_id), g_fid, data_size, 531 status = its_flash_fs_file_read(get_fs_ctx(client_id), g_fid, data_size, 545 read_size = ITS_UTILS_MIN(data_size, sizeof(asset_data)); [all …]
|
D | its_crypto_interface.c | 45 const size_t data_size) in tfm_its_fill_enc_add() argument 59 sizeof(data_size); in tfm_its_fill_enc_add() 68 &data_size, in tfm_its_fill_enc_add() 69 sizeof(data_size)); in tfm_its_fill_enc_add()
|
D | tfm_its_req_mngr.c | 67 size_t data_size; in tfm_its_get_req() local 87 data_size = msg->out_size[0]; in tfm_its_get_req() 89 if (data_size) { in tfm_its_get_req() 97 status = tfm_its_get(msg->client_id, uid, data_offset, data_size, &data_length); in tfm_its_get_req() 99 if ((status == PSA_SUCCESS) && (data_size != 0)) { in tfm_its_get_req()
|
D | its_utils.h | 37 #define ITS_UTILS_BOUND_CHECK(err_msg, data_size, data_buf_size) \ argument 38 typedef char err_msg[(data_size <= data_buf_size)*2 - 1]
|
D | tfm_internal_trusted_storage.h | 112 size_t data_size,
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/protected_storage/ |
D | ps_utils.h | 35 #define PS_UTILS_BOUND_CHECK(err_msg, data_size, data_buf_size) \ argument 36 typedef char err_msg[(data_size <= data_buf_size)*2 - 1]
|
D | ps_filesystem_interface.c | 29 size_t data_size, in psa_its_get() argument 39 return tfm_its_get(TFM_SP_PS, uid, data_offset, data_size, p_data_length); in psa_its_get()
|
D | tfm_protected_storage.c | 82 uint32_t data_size, in tfm_ps_get() argument 91 return ps_object_read(uid, client_id, data_offset, data_size, in tfm_ps_get()
|
D | tfm_protected_storage.h | 106 uint32_t data_size,
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/secure_element/stsafea/se_psa/ |
D | se_psa.c | 322 size_t data_size, in psa_se_st_export_public_fct() argument 390 static psa_status_t psa_se_st_get_serial(uint8_t *data, size_t data_size, size_t *p_data_length) in psa_se_st_get_serial() argument 396 if (data_size < 9) in psa_se_st_get_serial() 398 SE_ST_PSA_PRINT("Serial Number cannot be set in a buffer of size : %d\n", data_size); in psa_se_st_get_serial() 414 if (data_size >= 19) in psa_se_st_get_serial() 461 size_t data_size, in psa_se_st_export() argument 470 return psa_se_st_get_serial(data, data_size, p_data_length); in psa_se_st_export()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/crypto/ |
D | crypto_key_management.c | 112 size_t data_size = out_vec[0].len; in tfm_crypto_key_management_interface() local 114 status = psa_export_key(library_key, data, data_size, in tfm_crypto_key_management_interface() 124 size_t data_size = out_vec[0].len; in tfm_crypto_key_management_interface() local 126 status = psa_export_public_key(library_key, data, data_size, in tfm_crypto_key_management_interface()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 356 size_t data_size, in cc3xx_export_key_buffer_internal() argument 359 if(key_buffer_size > data_size) { in cc3xx_export_key_buffer_internal() 363 CC_PalMemSetZero(data + key_buffer_size, data_size - key_buffer_size); in cc3xx_export_key_buffer_internal() 371 size_t data_size, size_t *data_length) in cc3xx_export_public_key() argument 387 data, data_size, data_length)); in cc3xx_export_public_key() 411 *data_length = data_size; in cc3xx_export_public_key() 420 key_buffer_size, data, data_size, data_length); in cc3xx_export_public_key()
|
D | cc3xx_internal_asn1_util.c | 96 uint8_t *data, size_t data_size) in cc3xx_asn1_write_big_integer() argument 99 size_t len = data_size; in cc3xx_asn1_write_big_integer() 106 CC_PalMemCopy(*p, data, data_size); in cc3xx_asn1_write_big_integer()
|
/trusted-firmware-m-3.6.0/interface/src/ |
D | tfm_its_api.c | 34 size_t data_size, in psa_its_get() argument 46 { .base = p_data, .len = data_size } in psa_its_get()
|
D | tfm_ps_api.c | 34 size_t data_size, in psa_ps_get() argument 46 { .base = p_data, .len = data_size } in psa_ps_get()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/internal_trusted_storage/flash_fs/ |
D | its_flash_fs.c | 226 size_t data_size, in its_flash_fs_file_write() argument 317 if (data_size != 0) { in its_flash_fs_file_write() 321 data_size, data); in its_flash_fs_file_write() 327 if (offset + data_size > file_meta.cur_size) { in its_flash_fs_file_write() 329 file_meta.cur_size = offset + data_size; in its_flash_fs_file_write() 398 if ((file_meta.lblock != ITS_LOGICAL_DBLOCK0) || (data_size == 0)) { in its_flash_fs_file_write()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/firmware_update/bootloader/mcuboot/ |
D | tfm_mcuboot_fwu.c | 503 size_t data_size, in util_img_hash() argument 521 for (off = 0; off < data_size; off += blk_sz) { in util_img_hash() 522 blk_sz = data_size - off; in util_img_hash() 548 size_t data_size; in get_second_image_digest() local 557 data_size = mcuboot_ctx[component].loaded_size; in get_second_image_digest() 567 if (util_img_hash(fap, data_size, hash, (size_t)TFM_FWU_MAX_DIGEST_SIZE, in get_second_image_digest()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
D | cc3xx_psa_key_generation.h | 55 size_t data_size, size_t *data_length);
|
D | cc3xx_internal_asn1_util.h | 98 uint8_t *data, size_t data_size);
|
/trusted-firmware-m-3.6.0/interface/include/psa/ |
D | internal_trusted_storage.h | 107 size_t data_size,
|
D | protected_storage.h | 118 size_t data_size,
|
/trusted-firmware-m-3.6.0/platform/ext/common/template/ |
D | flash_otp_nv_counters_backend.c | 306 size_t data_size, in copy_data_into_block() argument 316 if (data_offset + data_size > block_offset && in copy_data_into_block() 324 if (data_offset + data_size > block_offset + block_size) { in copy_data_into_block() 327 copy_end_offset = data_offset + data_size; in copy_data_into_block()
|