Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 36) sorted by relevance

12

/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/TestAL/pal/linux/
Dtest_pal_file.c20 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/
Dpoly.c36 #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 …]
Dpoly.h113 size_t data_size,
/trusted-firmware-m-3.6.0/secure_fw/partitions/internal_trusted_storage/
Dtfm_internal_trusted_storage.c141 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 …]
Dits_crypto_interface.c45 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()
Dtfm_its_req_mngr.c67 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()
Dits_utils.h37 #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]
Dtfm_internal_trusted_storage.h112 size_t data_size,
/trusted-firmware-m-3.6.0/secure_fw/partitions/protected_storage/
Dps_utils.h35 #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]
Dps_filesystem_interface.c29 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()
Dtfm_protected_storage.c82 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()
Dtfm_protected_storage.h106 uint32_t data_size,
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/secure_element/stsafea/se_psa/
Dse_psa.c322 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/
Dcrypto_key_management.c112 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/
Dcc3xx_psa_key_generation.c356 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()
Dcc3xx_internal_asn1_util.c96 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/
Dtfm_its_api.c34 size_t data_size, in psa_its_get() argument
46 { .base = p_data, .len = data_size } in psa_its_get()
Dtfm_ps_api.c34 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/
Dits_flash_fs.c226 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/
Dtfm_mcuboot_fwu.c503 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/
Dcc3xx_psa_key_generation.h55 size_t data_size, size_t *data_length);
Dcc3xx_internal_asn1_util.h98 uint8_t *data, size_t data_size);
/trusted-firmware-m-3.6.0/interface/include/psa/
Dinternal_trusted_storage.h107 size_t data_size,
Dprotected_storage.h118 size_t data_size,
/trusted-firmware-m-3.6.0/platform/ext/common/template/
Dflash_otp_nv_counters_backend.c306 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()

12