/optee_os-3.20.0/ta/mk/ |
A D | build-user-ta.mk | 12 ifeq ($(ta-target),ta_arm32) 19 ta-dev-kit-dir$(sm) := $(out-dir)/export-$(ta-target) 23 user-ta-version := 0 25 include $(ta-mk-file) 26 ifeq ($(user-ta-uuid),) 27 $(error user-ta-uuid missing in $(ta-mk-file)) 35 cppflags$(sm) := $(cppflags$(ta-target)) $(CPPFLAGS_$(ta-target)) \ 40 cflags$(sm) := $(cflags$(ta-target)) $(CFLAGS_$(ta-target)) 71 ta_dev_kit: $(out-dir)/export-$(ta-target)/ta/$(user-ta-uuid).ta 73 $(out-dir)/export-$(ta-target)/ta/$(user-ta-uuid).ta: $(link-out-dir$(sm))/$(user-ta-uuid).ta [all …]
|
A D | ta_dev_kit.mk | 7 include $(ta-dev-kit-dir)/mk/conf.mk 8 ta-dev-kit-dir$(sm) := $(ta-dev-kit-dir) 22 user-ta-uuid := $(BINARY) 24 user-ta-ldadd := $(LDADD) 80 libdirs += $(ta-dev-kit-dir$(sm))/lib 125 ifneq ($(user-ta-uuid),) 127 vpath %.c $(ta-dev-kit-dir$(sm))/src 130 vpath %.S $(ta-dev-kit-dir$(sm))/src 135 SCRIPTS_DIR := $(ta-dev-kit-dir)/scripts 138 ifneq ($(user-ta-uuid),) [all …]
|
/optee_os-3.20.0/core/tee/ |
A D | tadb.c | 382 ta = calloc(1, sizeof(*ta)); in tee_tadb_ta_create() 383 if (!ta) in tee_tadb_ta_create() 401 bit_ffc(ta->db->files, ta->db->nbits, &i); in tee_tadb_ta_create() 488 clear_file(ta->db, ta->entry.file_number); in tee_tadb_ta_close_and_delete() 575 res = write_ent(ta->db, idx, &ta->entry); in tee_tadb_ta_close_and_commit() 642 ta = calloc(1, sizeof(*ta)); in tee_tadb_ta_open() 643 if (!ta) in tee_tadb_ta_open() 651 res = find_ent(ta->db, uuid, &idx, &ta->entry); in tee_tadb_ta_open() 708 ta->ta_buf = mobj_get_va(ta->ta_mobj, 0, sz); in ta_load() 734 ta->ta_buf + ta->pos, l, buf); in tee_tadb_ta_read() [all …]
|
/optee_os-3.20.0/core/kernel/ |
A D | early_ta.c | 20 const struct embedded_ts *ta = NULL; in find_early_ta() local 22 for_each_early_ta(ta) in find_early_ta() 23 if (!memcmp(&ta->uuid, uuid, sizeof(*uuid))) in find_early_ta() 24 return ta; in find_early_ta() 46 const struct embedded_ts *ta = NULL; in early_ta_init() local 49 for_each_early_ta(ta) { in early_ta_init() 50 if (ta->uncompressed_size) in early_ta_init() 53 ta->uncompressed_size); in early_ta_init() 56 DMSG("Early TA %pUl size %u%s", (void *)&ta->uuid, ta->size, in early_ta_init()
|
A D | secstor_ta.c | 15 struct tee_tadb_ta_read *ta; in secstor_ta_open() local 19 res = tee_tadb_ta_open(uuid, &ta); in secstor_ta_open() 22 prop = tee_tadb_ta_get_property(ta); in secstor_ta_open() 25 res = tee_tadb_ta_read(ta, NULL, &l); in secstor_ta_open() 33 *handle = (struct ts_store_handle *)ta; in secstor_ta_open() 37 tee_tadb_ta_close(ta); in secstor_ta_open() 44 struct tee_tadb_ta_read *ta = (struct tee_tadb_ta_read *)h; in secstor_ta_get_size() local 61 struct tee_tadb_ta_read *ta = (struct tee_tadb_ta_read *)h; in secstor_ta_read() local 63 TEE_Result res = tee_tadb_ta_read(ta, data, &l); in secstor_ta_read() 75 struct tee_tadb_ta_read *ta = (struct tee_tadb_ta_read *)h; in secstor_ta_close() local [all …]
|
A D | pseudo_ta.c | 294 const struct pseudo_ta_head *ta; in tee_ta_init_pseudo_ta_session() local 298 ta = SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head); in tee_ta_init_pseudo_ta_session() 300 if (ta >= SCATTERED_ARRAY_END(pseudo_tas, in tee_ta_init_pseudo_ta_session() 303 if (memcmp(&ta->uuid, uuid, sizeof(TEE_UUID)) == 0) in tee_ta_init_pseudo_ta_session() 305 ta++; in tee_ta_init_pseudo_ta_session() 309 DMSG("Open %s", ta->name); in tee_ta_init_pseudo_ta_session() 316 ctx->flags = ta->flags; in tee_ta_init_pseudo_ta_session() 317 stc->pseudo_ta = ta; in tee_ta_init_pseudo_ta_session() 318 ctx->ts_ctx.uuid = ta->uuid; in tee_ta_init_pseudo_ta_session()
|
A D | ree_fs_ta.c | 194 if (!uuid || !ta || !mobj || !ta_size) in rpc_load() 210 *ta = mobj_get_va(*mobj, 0, params[1].u.memref.size); in rpc_load() 211 if (!*ta) { in rpc_load() 216 assert(*ta); in rpc_load() 242 struct shdr *ta = NULL; in ree_fs_ta_open() local 258 res = rpc_load(uuid, &ta, &ta_size, &mobj); in ree_fs_ta_open() 263 shdr = shdr_alloc_and_copy(0, ta, ta_size); in ree_fs_ta_open() 290 res = shdr_load_pub_key(shdr, offs, (const void *)ta, in ree_fs_ta_open() 315 shdr = shdr_alloc_and_copy(offs, ta, ta_size); in ree_fs_ta_open() 451 (uint8_t *)ta + offs + sizeof(img_ehdr), in ree_fs_ta_open() [all …]
|
/optee_os-3.20.0/ta/arch/arm/ |
A D | link.mk | 1 link-script$(sm) = $(ta-dev-kit-dir$(sm))/src/ta.ld.S 2 link-script-pp$(sm) = $(link-out-dir$(sm))/ta.lds 3 link-script-dep$(sm) = $(link-out-dir$(sm))/.ta.ld.d 19 all: $(link-out-dir$(sm))/$(user-ta-uuid).dmp \ 21 $(link-out-dir$(sm))/$(user-ta-uuid).ta 26 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).ta 104 cmd-echo$(user-ta-uuid) := SIGN # 107 cmd-echo$(user-ta-uuid) := SIGNENC 109 $(link-out-dir$(sm))/$(user-ta-uuid).ta: \ 115 $$(crypt-args$(user-ta-uuid)) \ [all …]
|
A D | link_shlib.mk | 12 $(link-out-dir)/$(shlibuuid).ta 18 cleanfiles += $(link-out-dir)/$(shlibuuid).ta 50 $(link-out-dir)/$(shlibuuid).ta: $(link-out-dir)/$(shlibname).stripped.so \
|
/optee_os-3.20.0/ta/ |
A D | ta.mk | 4 sm := $(ta-target) 60 ifeq ($(ta-target),ta_arm32) 125 ifeq ($(ta-target),ta_arm32) 156 ta/arch/$(ARCH)/link.mk ta/arch/$(ARCH)/link_shlib.mk \ 157 ta/mk/ta_dev_kit.mk 159 $(foreach f, $(ta-mkfiles), \ 178 ta-srcfiles = ta/arch/$(ARCH)/user_ta_header.c ta/arch/$(ARCH)/ta.ld.S 179 ifeq ($(ta-target),ta_arm32) 180 ta-srcfiles += ta/arch/$(ARCH)/ta_entry_a32.S 186 ta-keys = keys/default_ta.pem [all …]
|
/optee_os-3.20.0/ |
A D | Makefile | 81 ta-targets ?= invalid 82 default-user-ta-target ?= $(firstword $(ta-targets)) 86 define build-ta-target 87 ta-target := $(1) 88 include ta/ta.mk 90 $(foreach t, $(ta-targets), $(eval $(call build-ta-target, $(t)))) 93 define build-user-ta 94 ta-mk-file := $(1) 95 include ta/mk/build-user-ta.mk 97 $(foreach t, $(sort $(wildcard ta/*/user_ta.mk)), $(eval $(call build-user-ta,$(t))))
|
/optee_os-3.20.0/core/include/tee/ |
A D | tadb.h | 48 struct tee_tadb_ta_write **ta); 49 TEE_Result tee_tadb_ta_write(struct tee_tadb_ta_write *ta, const void *buf, 51 void tee_tadb_ta_close_and_delete(struct tee_tadb_ta_write *ta); 52 TEE_Result tee_tadb_ta_close_and_commit(struct tee_tadb_ta_write *ta); 56 TEE_Result tee_tadb_ta_open(const TEE_UUID *uuid, struct tee_tadb_ta_read **ta); 58 tee_tadb_ta_get_property(struct tee_tadb_ta_read *ta); 59 TEE_Result tee_tadb_get_tag(struct tee_tadb_ta_read *ta, uint8_t *tag, 61 TEE_Result tee_tadb_ta_read(struct tee_tadb_ta_read *ta, void *buf, 63 void tee_tadb_ta_close(struct tee_tadb_ta_read *ta);
|
/optee_os-3.20.0/ta/pkcs11/ |
A D | user_ta.mk | 1 user-ta-uuid := fd02c9da-306c-48c7-a49c-bbd827ae86ee 3 all: pkcs11-ta-verify-helpers 5 .PHONY: pkcs11-ta-verify-helpers 6 pkcs11-ta-verify-helpers: 8 ${q}ta/pkcs11/scripts/verify-helpers.sh --quiet
|
A D | Android.mk | 2 local_module := fd02c9da-306c-48c7-a49c-bbd827ae86ee.ta
|
/optee_os-3.20.0/core/arch/riscv/ |
A D | riscv.mk | 125 ifeq (,$(supported-ta-targets)) 126 supported-ta-targets = ta_rv32 128 supported-ta-targets += ta_rv64 132 ta-targets := $(if $(CFG_USER_TA_TARGETS),$(filter $(supported-ta-targets),$(CFG_USER_TA_TARGETS)),… 138 ifneq ($(filter ta_rv32,$(ta-targets)),) 160 ta-mk-file-export-vars-ta_rv32 += CFG_RV32_ta_rv32 169 ta-mk-file-export-add-ta_rv32 += COMPILER ?= gcc_nl_ 171 ta-mk-file-export-add-ta_rv32 += PYTHON3 ?= python3_nl_ 174 ifneq ($(filter ta_rv64,$(ta-targets)),) 197 ta-mk-file-export-vars-ta_rv64 += CFG_RV64_ta_rv64 [all …]
|
/optee_os-3.20.0/core/arch/arm/ |
A D | arm.mk | 256 ifeq (,$(supported-ta-targets)) 257 supported-ta-targets = ta_arm32 259 supported-ta-targets += ta_arm64 263 ta-targets := $(if $(CFG_USER_TA_TARGETS),$(filter $(supported-ta-targets),$(CFG_USER_TA_TARGETS)),… 269 ifneq ($(filter ta_arm32,$(ta-targets)),) 311 ta-mk-file-export-vars-ta_arm32 += CFG_ARM32_ta_arm32 320 ta-mk-file-export-add-ta_arm32 += COMPILER ?= gcc_nl_ 325 ifneq ($(filter ta_arm64,$(ta-targets)),) 361 ifeq (,$(bp-ta-opt)) 364 ta_arm64-platform-cflags += $(bp-ta-opt) [all …]
|
/optee_os-3.20.0/core/pta/ |
A D | secstor_ta_mgmt.c | 21 struct tee_tadb_ta_read *ta; in check_install_conflict() local 26 res = tee_tadb_ta_open(&uuid, &ta); in check_install_conflict() 32 prop = tee_tadb_ta_get_property(ta); in check_install_conflict() 36 tee_tadb_ta_close(ta); in check_install_conflict() 44 struct tee_tadb_ta_write *ta; in install_ta() local 101 res = tee_tadb_ta_create(&property, &ta); in install_ta() 112 res = tee_tadb_ta_write(ta, buf, l); in install_ta() 128 return tee_tadb_ta_close_and_commit(ta); in install_ta() 131 tee_tadb_ta_close_and_delete(ta); in install_ta()
|
A D | device.c | 44 const struct pseudo_ta_head *ta = NULL; in get_devices() local 62 SCATTERED_ARRAY_FOREACH(ta, pseudo_tas, struct pseudo_ta_head) in get_devices() 63 add_ta(ta->flags, &ta->uuid, buf, blen, &pos, rflags); in get_devices()
|
/optee_os-3.20.0/core/ |
A D | sub.mk | 25 early-ta-compress = --compress 28 early-ta-$1-uuid := $(firstword $(subst ., ,$(notdir $1))) 29 gensrcs-y += early-ta-$1 30 produce-early-ta-$1 = early_ta_$$(early-ta-$1-uuid).c 31 depends-early-ta-$1 = $1 scripts/ts_bin_to_c.py 32 recipe-early-ta-$1 = $(PYTHON3) scripts/ts_bin_to_c.py $(early-ta-compress) \ 33 --ta $1 --out $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 37 process_early_ta,$(out-dir)/ta/$(f).stripped.elf)))
|
/optee_os-3.20.0/ta/avb/ |
A D | user_ta.mk | 1 user-ta-uuid := 023f8f1a-292a-432b-8fc4-de8471358067 2 user-ta-version := 0
|
/optee_os-3.20.0/core/arch/arm/plat-uniphier/ |
A D | conf.mk | 37 ta-targets = ta_arm32 40 ta-targets += ta_arm64
|
/optee_os-3.20.0/scripts/ |
A D | ts_bin_to_c.py | 111 if args.ta is None and args.sp is None: 114 if args.ta is not None and args.sp is not None: 117 if args.ta is not None: 118 ts = args.ta
|
/optee_os-3.20.0/ta/trusted_keys/ |
A D | user_ta.mk | 1 user-ta-uuid := f04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | aria.c | 181 uint32_t ta, tb, tc; in aria_a() local 182 ta = *b; // 4567 in aria_a() 184 *a = ARIA_P2( ta ); // 6745 in aria_a() 188 ta ^= *d; // 4567+98ba in aria_a() 190 ta = ARIA_P1( ta ) ^ tc ^ *c; // 2301+5476+89ab+fedc in aria_a() 193 *b ^= ta ^ tb; // 0123+2301+5476+89ab+ba98+efcd+fedc OUT in aria_a() 194 tb = ARIA_P2( tb ) ^ ta; // 2301+5476+89ab+98ba+cdef+fedc in aria_a() 196 ta = ARIA_P2( ta ); // 0123+7654+ab89+dcfe in aria_a() 197 *d ^= ARIA_P1( ta ) ^ tc; // 1032+2301+6745+7654+98ba+ba98+cdef OUT in aria_a() 199 *c ^= ARIA_P1( tc ) ^ ta; // 0123+1032+4567+7654+ab89+dcfe+fedc OUT in aria_a()
|
/optee_os-3.20.0/mk/ |
A D | aosp_optee.mk | 52 OPTEE_TA_OUT_DIR ?= $(OPTEE_OUT_DIR)/ta 53 ABS_OPTEE_TA_OUT_DIR ?= $(ABS_OPTEE_OUT_DIR)/ta
|