/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | memory_buffer_alloc.c | 93 (size_t) hdr, (size_t) hdr->prev, (size_t) hdr->next, in debug_header() 94 hdr->alloc, hdr->size ); in debug_header() 154 if( hdr->prev != NULL && hdr->prev == hdr->next ) in verify_header() 162 if( hdr->prev_free != NULL && hdr->prev_free == hdr->next_free ) in verify_header() 428 hdr->prev->next = hdr->next; in buffer_alloc_free() 430 hdr = hdr->prev; in buffer_alloc_free() 433 hdr->next->prev = hdr; in buffer_alloc_free() 447 hdr->next = hdr->next->next; in buffer_alloc_free() 464 hdr->prev_free->next_free = hdr; in buffer_alloc_free() 469 hdr->next_free->prev_free = hdr; in buffer_alloc_free() [all …]
|
/optee_os/lib/libutils/isoc/ |
A D | bget_malloc.c | 524 if (hdr) { in gen_mdbg_malloc() 526 hdr++; in gen_mdbg_malloc() 543 if (hdr) { in gen_mdbg_free() 544 hdr--; in gen_mdbg_free() 571 hdr++; in gen_mdbg_calloc() 583 hdr--; in gen_mdbg_realloc_unlocked() 586 hdr = raw_realloc(hdr, sizeof(struct mdbg_hdr), in gen_mdbg_realloc_unlocked() 590 hdr++; in gen_mdbg_realloc_unlocked() 619 hdr++; in gen_mdbg_memalign() 630 assert(bget_buf_size(hdr) >= hdr->pl_size); in get_payload_start_size() [all …]
|
/optee_os/ta/trusted_keys/ |
A D | entry.c | 99 struct tk_blob_hdr *hdr = (struct tk_blob_hdr *)out; in huk_ae_encrypt() local 104 hdr->reserved = 0; in huk_ae_encrypt() 106 memcpy(hdr->iv, iv, IV_SIZE); in huk_ae_encrypt() 108 res = TEE_AEInit(crypto_op, hdr->iv, IV_SIZE, TAG_SIZE * 8, 0, 0); in huk_ae_encrypt() 112 res = TEE_AEEncryptFinal(crypto_op, in, in_sz, hdr->enc_key, in huk_ae_encrypt() 113 &enc_key_len, hdr->tag, &tag_len); in huk_ae_encrypt() 117 if (ADD_OVERFLOW(enc_key_len, sizeof(*hdr), out_sz)) in huk_ae_encrypt() 127 struct tk_blob_hdr *hdr = (struct tk_blob_hdr *)in; in huk_ae_decrypt() local 131 if (SUB_OVERFLOW(in_sz, sizeof(*hdr), &enc_key_len)) in huk_ae_decrypt() 134 res = TEE_AEInit(crypto_op, hdr->iv, IV_SIZE, TAG_SIZE * 8, 0, 0); in huk_ae_decrypt() [all …]
|
/optee_os/core/drivers/bnxt/ |
A D | bnxt_fw.c | 248 (const char *)hdr, in ape_hdr_crc_calc() 249 (uintptr_t)(&hdr->checksum) - (uintptr_t)hdr); in ape_hdr_crc_calc() 259 (const char *)((uintptr_t)hdr + APE_BIN_HDR_SIZE), in ape_hdr_crc_calc() 260 hdr->num_total_sections * APE_SECTION_HDR_SIZE); in ape_hdr_crc_calc() 265 static int ape_bin_hdr_valid(const struct ape_bin_hdr_s *hdr) in ape_bin_hdr_valid() argument 269 if (!hdr) { in ape_bin_hdr_valid() 274 if (hdr->signature != APE_BIN_HDR_SIGNATURE) { in ape_bin_hdr_valid() 279 if (hdr->num_total_sections > APE_IMG_MAX_SECTIONS) { in ape_bin_hdr_valid() 284 checksum = ape_hdr_crc_calc(hdr); in ape_bin_hdr_valid() 285 if (hdr->checksum != checksum) { in ape_bin_hdr_valid() [all …]
|
/optee_os/core/drivers/crypto/se050/core/ |
A D | apdu.c | 13 uint8_t *hdr, size_t hdr_len, in crypto_se_do_apdu() argument 20 hdr, hdr_len, src_data, src_len, in crypto_se_do_apdu()
|
/optee_os/lib/libutee/ |
A D | tee_api_arith_mpi.c | 62 struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in copy_mpi_to_bigint() local 69 if (hdr->alloc_size < n) in copy_mpi_to_bigint() 72 hdr->nblimbs = n; in copy_mpi_to_bigint() 73 hdr->sign = mpi->s; in copy_mpi_to_bigint() 74 memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); in copy_mpi_to_bigint() 104 const struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in get_mpi() local 106 size_t n = hdr->nblimbs; in get_mpi() 113 mpi->s = hdr->sign; in get_mpi() 120 struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in TEE_BigIntInit() local 123 hdr->sign = 1; in TEE_BigIntInit() [all …]
|
/optee_os/core/kernel/ |
A D | ree_fs_ta.c | 341 static TEE_Result check_update_version(struct shdr_bootstrap_ta *hdr) in check_update_version() argument 398 if (!memcmp(hdr->uuid, hdr_entry.uuid, sizeof(TEE_UUID))) { in check_update_version() 405 if (hdr_entry.ta_version > hdr->ta_version) { in check_update_version() 408 } else if (hdr_entry.ta_version < hdr->ta_version) { in check_update_version() 409 len = sizeof(*hdr); in check_update_version() 410 res = ops->write(fh, sizeof(db_hdr) + (i * len), hdr, in check_update_version() 416 len = sizeof(*hdr); in check_update_version() 418 hdr, len); in check_update_version()
|
/optee_os/core/drivers/crypto/se050/adaptors/apis/ |
A D | apdu.c | 498 tlvHeader_t hdr = { in se050_scp03_send_rotate_cmd() local 499 .hdr = { in se050_scp03_send_rotate_cmd() 511 hdr.hdr[2] = cmd->cmd[0]; in se050_scp03_send_rotate_cmd() 512 st = DoAPDUTxRx_s_Case4(ctx, &hdr, cmd->cmd, cmd->cmd_len, in se050_scp03_send_rotate_cmd()
|
/optee_os/ta/arch/arm/ |
A D | link.mk | 59 link-ldflags += --eh-frame-hdr
|
/optee_os/out/arm/export-ta_arm32/mk/ |
A D | link.mk | 59 link-ldflags += --eh-frame-hdr
|
/optee_os/out/arm/export-ta_arm64/mk/ |
A D | link.mk | 59 link-ldflags += --eh-frame-hdr
|