/trusted-firmware-m-3.6.0/platform/ext/common/template/ |
D | otp_flash.c | 132 uint32_t offset, size_t in_len, in read_from_input() argument 145 if (in_len > value_size) { in read_from_input() 154 err = read_otp_nv_counters_flash(offset, buffer, in_len); in read_from_input() 158 for (idx = 0; idx < in_len; idx++) { in read_from_input() 164 err = write_otp_nv_counters_flash(offset, in, in_len); in read_from_input() 173 size_t in_len, const uint8_t *in) in tfm_plat_otp_write() argument 177 … return read_from_input(id, offsetof(struct flash_otp_nv_counters_region_t, huk), in_len, in); in tfm_plat_otp_write() 179 … return read_from_input(id, offsetof(struct flash_otp_nv_counters_region_t, iak), in_len, in); in tfm_plat_otp_write() 181 … return read_from_input(id, offsetof(struct flash_otp_nv_counters_region_t, iak_len), in_len, in); in tfm_plat_otp_write() 183 … return read_from_input(id, offsetof(struct flash_otp_nv_counters_region_t, iak_type), in_len, in); in tfm_plat_otp_write() [all …]
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/platform/ |
D | platform_sp.c | 86 size_t in_len = PSA_MAX_IOVEC, out_len = PSA_MAX_IOVEC, num = 0; in platform_sp_nv_read_psa_api() local 92 while ((in_len > 0) && (msg->in_size[in_len - 1] == 0)) { in platform_sp_nv_read_psa_api() 93 in_len--; in platform_sp_nv_read_psa_api() 102 in_len != 1 || out_len != 1) { in platform_sp_nv_read_psa_api() 135 size_t in_len = PSA_MAX_IOVEC, out_len = PSA_MAX_IOVEC, num = 0; in platform_sp_nv_increment_psa_api() local 140 while ((in_len > 0) && (msg->in_size[in_len - 1] == 0)) { in platform_sp_nv_increment_psa_api() 141 in_len--; in platform_sp_nv_increment_psa_api() 150 in_len != 1 || out_len != 0) { in platform_sp_nv_increment_psa_api() 189 uint32_t in_len = PSA_MAX_IOVEC; in platform_sp_ioctl_psa_api() local 193 while ((in_len > 0) && (msg->in_size[in_len - 1] == 0)) { in platform_sp_ioctl_psa_api() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/ |
D | otp_cc312.c | 347 size_t in_len, const uint8_t *in, in otp_write() argument 359 if (size < in_len) { in otp_write() 367 for(in_done = 0; in_done < in_len;) { in otp_write() 375 if (in_done + copy_size > in_len) { in otp_write() 376 copy_size = in_len - in_done; in otp_write() 393 zero_count = count_buffer_zero_bits(in, in_len); in otp_write() 394 if (in_len < size) { in otp_write() 398 zero_count += count_otp_zero_bits(addr + in_len, size - in_len); in otp_write() 421 for(in_done = 0; in_done < in_len;) { in otp_write() 428 if (in_done + copy_size > in_len) { in otp_write() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/rss_comms/ |
D | rss_comms_protocol_pointer_access.c | 26 req->in_len = PARAM_UNPACK_IN_LEN(msg->ctrl_param); in rss_protocol_pointer_access_deserialize_msg() 32 if (req->in_len + req->out_len > PSA_MAX_IOVEC) { in rss_protocol_pointer_access_deserialize_msg() 37 for (idx = 0; idx < req->in_len; idx++) { in rss_protocol_pointer_access_deserialize_msg() 69 err = comms_permissions_memory_check(msg->host_ptrs[idx + req->in_len], in rss_protocol_pointer_access_deserialize_msg() 70 msg->io_sizes[idx + req->in_len], in rss_protocol_pointer_access_deserialize_msg() 76 err = comms_atu_alloc_region(msg->host_ptrs[idx + req->in_len], in rss_protocol_pointer_access_deserialize_msg() 77 msg->io_sizes[idx + req->in_len], in rss_protocol_pointer_access_deserialize_msg() 89 msg->host_ptrs[idx + req->in_len], &mapped_host_ptr); in rss_protocol_pointer_access_deserialize_msg() 95 req->out_vec[idx].len = msg->io_sizes[idx + req->in_len]; in rss_protocol_pointer_access_deserialize_msg()
|
D | rss_comms.c | 39 SPMLOG_DBGMSGVAL("in_len=", req->in_len); in message_dispatch() 41 if (req->in_len > 0) { in message_dispatch() 44 if (req->in_len > 1) { in message_dispatch() 47 if (req->in_len > 2) { in message_dispatch() 50 if (req->in_len > 3) { in message_dispatch() 68 req->in_len, in message_dispatch() 77 req->in_len, in message_dispatch()
|
D | rss_comms_protocol_embed.c | 25 req->in_len = PARAM_UNPACK_IN_LEN(msg->ctrl_param); in rss_protocol_embed_deserialize_msg() 31 if (req->in_len + req->out_len > 4) { in rss_protocol_embed_deserialize_msg() 36 for (i = 0; i < req->in_len; ++i) { in rss_protocol_embed_deserialize_msg() 55 req->out_vec[i].len = msg->io_size[req->in_len + i]; in rss_protocol_embed_deserialize_msg() 56 payload_size += msg->io_size[req->in_len + i]; in rss_protocol_embed_deserialize_msg()
|
D | rss_comms_permissions_hal.h | 44 size_t in_len,
|
D | rss_comms.h | 36 uint32_t in_len; member
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/crypto/ |
D | crypto_init.c | 62 size_t in_len, in tfm_crypto_init_iovecs() argument 69 for (i = 1; i < in_len; i++) { in tfm_crypto_init_iovecs() 151 size_t in_len, in tfm_crypto_init_iovecs() argument 160 for (i = 1; i < in_len; i++) { in tfm_crypto_init_iovecs() 193 size_t in_len = PSA_MAX_IOVEC, out_len = PSA_MAX_IOVEC, i; in tfm_crypto_call_srv() local 199 while ((in_len > 0) && (msg->in_size[in_len - 1] == 0)) { in tfm_crypto_call_srv() 200 in_len--; in tfm_crypto_call_srv() 209 if (in_len < 1) { in tfm_crypto_call_srv() 221 status = tfm_crypto_init_iovecs(msg, in_vec, in_len, out_vec, out_len); in tfm_crypto_call_srv() 229 status = tfm_crypto_api_dispatcher(in_vec, in_len, out_vec, out_len); in tfm_crypto_call_srv() [all …]
|
/trusted-firmware-m-3.6.0/interface/src/ |
D | tfm_psa_call.c | 16 size_t in_len, in psa_call() argument 22 (in_len > PSA_MAX_IOVEC) || in psa_call() 27 return tfm_psa_call_pack(handle, PARAM_PACK(type, in_len, out_len), in psa_call()
|
D | tfm_tz_psa_ns_api.c | 36 size_t in_len, in psa_call() argument 42 (in_len > PSA_MAX_IOVEC) || in psa_call() 50 PARAM_PACK(type, in_len, out_len), in psa_call()
|
D | tfm_crypto_api.c | 740 size_t in_len = IOVEC_LEN(in_vec); in TFM_CRYPTO_API() local 743 in_len--; in TFM_CRYPTO_API() 745 status = psa_call(TFM_CRYPTO_HANDLE, PSA_IPC_CALL, in_vec, in_len, in TFM_CRYPTO_API() 801 size_t in_len = IOVEC_LEN(in_vec); in TFM_CRYPTO_API() local 804 in_len--; in TFM_CRYPTO_API() 806 status = psa_call(TFM_CRYPTO_HANDLE, PSA_IPC_CALL, in_vec, in_len, in TFM_CRYPTO_API() 943 size_t in_len = IOVEC_LEN(in_vec); in TFM_CRYPTO_API() local 946 in_len--; in TFM_CRYPTO_API() 948 status = psa_call(TFM_CRYPTO_HANDLE, PSA_IPC_CALL, in_vec, in_len, in TFM_CRYPTO_API() 979 size_t in_len = IOVEC_LEN(in_vec); in TFM_CRYPTO_API() local [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/cc312-rom/ |
D | cc3xx_chacha.c | 218 void cc3xx_chacha20_update_authed_data(const uint8_t* in, size_t in_len) in cc3xx_chacha20_update_authed_data() argument 220 if(in_len == 0) { in cc3xx_chacha20_update_authed_data() 225 chacha_state.authed_len += in_len; in cc3xx_chacha20_update_authed_data() 227 cc3xx_poly1305_update(in, in_len); in cc3xx_chacha20_update_authed_data() 230 cc3xx_err_t cc3xx_chacha20_update(const uint8_t* in, size_t in_len) in cc3xx_chacha20_update() argument 235 if (in_len == 0) { in cc3xx_chacha20_update() 250 chacha_state.bytes_since_dma_output_addr_set += in_len; in cc3xx_chacha20_update() 251 chacha_state.crypted_len += in_len; in cc3xx_chacha20_update() 258 cc3xx_poly1305_update(in, in_len); in cc3xx_chacha20_update() 262 err = cc3xx_dma_buffered_input_data(in, in_len, true); in cc3xx_chacha20_update()
|
D | cc3xx_chacha.h | 129 cc3xx_err_t cc3xx_chacha20_update(const uint8_t* in, size_t in_len); 145 void cc3xx_chacha20_update_authed_data(const uint8_t* in, size_t in_len);
|
D | cc3xx_aes.h | 207 cc3xx_err_t cc3xx_aes_update(const uint8_t* in, size_t in_len); 224 void cc3xx_aes_update_authed_data(const uint8_t* in, size_t in_len);
|
D | cc3xx_aes.c | 746 void cc3xx_aes_update_authed_data(const uint8_t* in, size_t in_len) in cc3xx_aes_update_authed_data() argument 750 if (in_len == 0) { in cc3xx_aes_update_authed_data() 761 P_CC3XX->aes.aes_remaining_bytes = in_len + AES_BLOCK_SIZE; in cc3xx_aes_update_authed_data() 778 aes_state.authed_length += in_len; in cc3xx_aes_update_authed_data() 779 cc3xx_dma_buffered_input_data(in, in_len, write_output); in cc3xx_aes_update_authed_data() 832 cc3xx_err_t cc3xx_aes_update(const uint8_t* in, size_t in_len) in cc3xx_aes_update() argument 885 aes_state.crypted_length += in_len; in cc3xx_aes_update() 886 return cc3xx_dma_buffered_input_data(in, in_len, write_output); in cc3xx_aes_update()
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/protected_storage/crypto/ |
D | ps_crypto_interface.c | 195 size_t in_len, in ps_crypto_encrypt_and_tag() argument 205 in, in_len, in ps_crypto_encrypt_and_tag() 222 size_t in_len, in ps_crypto_auth_and_decrypt() argument 230 (void)memcpy((in + in_len), crypto->ref.tag, PS_TAG_LEN_BYTES); in ps_crypto_auth_and_decrypt() 231 in_len += PS_TAG_LEN_BYTES; in ps_crypto_auth_and_decrypt() 236 in, in_len, in ps_crypto_auth_and_decrypt()
|
D | ps_crypto_interface.h | 79 size_t in_len, 102 size_t in_len,
|
/trusted-firmware-m-3.6.0/interface/src/multi_core/ |
D | tfm_multi_core_psa_ns_api.c | 95 const psa_invec *in_vec, size_t in_len, in psa_call() argument 105 params.psa_call_params.in_len = in_len; in psa_call()
|
/trusted-firmware-m-3.6.0/interface/include/ |
D | tfm_psa_call_pack.h | 46 #define PARAM_PACK(type, in_len, out_len) \ argument 48 ((((uint32_t)(in_len)) << IN_LEN_OFFSET) & IN_LEN_MASK) | \
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/kronos/rss_comms/ |
D | rss_comms_permissions_hal.c | 91 size_t in_len, in comms_permissions_service_check() argument 109 if (in_len >= 1) { in comms_permissions_service_check()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/tc/rss_comms/ |
D | rss_comms_permissions_hal.c | 94 size_t in_len, in comms_permissions_service_check() argument 132 if (in_len >= 1) { in comms_permissions_service_check()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/openamp/ |
D | tfm_spe_dual_core_psa_client_secure_lib.c | 92 uint32_t in_len = s_map_entry->msg.params.psa_call_params.in_len; in prepare_in_vecs() local 93 SPM_ASSERT(in_len <= PSA_MAX_IOVEC); in prepare_in_vecs() 97 for (int i = 0; i < in_len; i++) { in prepare_in_vecs() 271 s_map_entry->msg.params.psa_call_params.in_len, in deliver_msg_to_tfm_spe()
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/stm32h5xx/secure/ |
D | dummy_otp.c | 22 size_t in_len, const uint8_t *in) in tfm_plat_otp_write() argument
|
/trusted-firmware-m-3.6.0/platform/include/ |
D | tfm_plat_otp.h | 152 size_t in_len, const uint8_t *in);
|