Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 117) sorted by relevance

12345

/optee_os/core/arch/arm/sm/
H A Dstd_smc.c39 static const TEE_UUID uuid = { variable
59 args->a0 = uuid.timeLow; in smc_std_handler()
60 args->a1 = (uuid.timeHiAndVersion << 16) | uuid.timeMid; in smc_std_handler()
61 args->a2 = (uuid.clockSeqAndNode[3] << 24) | in smc_std_handler()
62 (uuid.clockSeqAndNode[2] << 16) | in smc_std_handler()
63 (uuid.clockSeqAndNode[1] << 8) | in smc_std_handler()
64 uuid.clockSeqAndNode[0]; in smc_std_handler()
65 args->a3 = (uuid.clockSeqAndNode[7] << 24) | in smc_std_handler()
66 (uuid.clockSeqAndNode[6] << 16) | in smc_std_handler()
67 (uuid.clockSeqAndNode[5] << 8) | in smc_std_handler()
[all …]
/optee_os/core/tee/
H A Dtee_time_generic.c13 TEE_UUID uuid; member
21 static TEE_Result tee_time_ta_get_offs(const TEE_UUID *uuid, in tee_time_ta_get_offs() argument
27 if (memcmp(uuid, &tee_time_offs[n].uuid, sizeof(TEE_UUID)) in tee_time_ta_get_offs()
37 static TEE_Result tee_time_ta_set_offs(const TEE_UUID *uuid, in tee_time_ta_set_offs() argument
44 if (memcmp(uuid, &tee_time_offs[n].uuid, sizeof(TEE_UUID)) in tee_time_ta_set_offs()
57 tee_time_offs[tee_time_num_offs].uuid = *uuid; in tee_time_ta_set_offs()
64 TEE_Result tee_time_get_ta_time(const TEE_UUID *uuid, TEE_Time *time) in tee_time_get_ta_time() argument
72 res = tee_time_ta_get_offs(uuid, &offs, &positive); in tee_time_get_ta_time()
98 TEE_Result tee_time_set_ta_time(const TEE_UUID *uuid, const TEE_Time *time) in tee_time_set_ta_time() argument
114 return tee_time_ta_set_offs(uuid, &offs, true); in tee_time_set_ta_time()
[all …]
H A Dfs_dirfile.c23 TEE_UUID uuid; member
212 const TEE_UUID *uuid, const void *oid, in tee_fs_dirfile_find() argument
231 if (!memcmp(&dent.uuid, uuid, sizeof(dent.uuid)) && in tee_fs_dirfile_find()
287 const TEE_UUID *uuid, in tee_fs_dirfile_rename() argument
297 dent.uuid = *uuid; in tee_fs_dirfile_rename()
310 res = tee_fs_dirfile_find(dirh, uuid, oid, oidlen, &dfh2); in tee_fs_dirfile_rename()
367 const TEE_UUID *uuid, int *idx, void *oid, in tee_fs_dirfile_get_next() argument
381 if (!memcmp(&dent.uuid, uuid, sizeof(dent.uuid)) && in tee_fs_dirfile_get_next()
H A Dtee_svc.c117 TEE_UUID uuid; in get_prop_tee_dev_id() local
122 if (*blen < sizeof(uuid)) { in get_prop_tee_dev_id()
123 *blen = sizeof(uuid); in get_prop_tee_dev_id()
126 *blen = sizeof(uuid); in get_prop_tee_dev_id()
132 (uint8_t *)&uuid, sizeof(uuid)); in get_prop_tee_dev_id()
145 uuid.timeHiAndVersion &= 0x0fff; in get_prop_tee_dev_id()
146 uuid.timeHiAndVersion |= 5 << 12; in get_prop_tee_dev_id()
149 uuid.clockSeqAndNode[0] &= 0x3f; in get_prop_tee_dev_id()
150 uuid.clockSeqAndNode[0] |= 0x80; in get_prop_tee_dev_id()
152 return copy_to_user(buf, &uuid, sizeof(TEE_UUID)); in get_prop_tee_dev_id()
[all …]
H A Dtee_fs_key_manager.c73 TEE_Result tee_fs_fek_crypt(const TEE_UUID *uuid, TEE_OperationMode mode, in tee_fs_fek_crypt() argument
91 if (uuid) { in tee_fs_fek_crypt()
93 TEE_FS_KM_SSK_SIZE, uuid, sizeof(*uuid)); in tee_fs_fek_crypt()
154 TEE_Result tee_fs_generate_fek(const TEE_UUID *uuid, void *buf, size_t buf_size) in tee_fs_generate_fek() argument
165 return tee_fs_fek_crypt(uuid, TEE_MODE_ENCRYPT, buf, in tee_fs_generate_fek()
229 TEE_Result tee_fs_crypt_block(const TEE_UUID *uuid, uint8_t *out, in tee_fs_crypt_block() argument
243 res = tee_fs_fek_crypt(uuid, TEE_MODE_DECRYPT, encrypted_fek, in tee_fs_crypt_block()
/optee_os/core/kernel/
H A Dearly_ta.c18 static const struct embedded_ts *find_early_ta(const TEE_UUID *uuid) in find_early_ta() argument
23 if (!memcmp(&ta->uuid, uuid, sizeof(*uuid))) in find_early_ta()
29 static TEE_Result early_ta_open(const TEE_UUID *uuid, in early_ta_open() argument
32 return emb_ts_open(uuid, h, find_early_ta); in early_ta_open()
56 DMSG("Early TA %pUl size %u%s", (void *)&ta->uuid, ta->size, in early_ta_init()
H A Dree_fs_ta.c73 uint8_t uuid[sizeof(TEE_UUID)]; member
87 const uint8_t uuid[sizeof(TEE_UUID)], in check_update_version()
152 if (!memcmp(uuid, db_entry.uuid, sizeof(TEE_UUID))) { in check_update_version()
163 memcpy(db_entry.uuid, uuid, sizeof(TEE_UUID)); in check_update_version()
172 memcpy(db_entry.uuid, uuid, sizeof(TEE_UUID)); in check_update_version()
196 static TEE_Result rpc_load(const TEE_UUID *uuid, struct shdr **ta, in rpc_load() argument
202 if (!uuid || !ta || !mobj || !ta_size) in rpc_load()
207 tee_uuid_to_octets((void *)&params[0].u.value, uuid); in rpc_load()
228 tee_uuid_to_octets((void *)&params[0].u.value, uuid); in rpc_load()
241 static TEE_Result ree_fs_ta_open(const TEE_UUID *uuid, in ree_fs_ta_open() argument
[all …]
/optee_os/ta/
H A Dlink.mk20 all: $(link-out-dir$(sm))/$(user-ta-uuid).dmp \
21 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \
22 $(link-out-dir$(sm))/$(user-ta-uuid).ta
23 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).elf
24 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).dmp
25 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).map
26 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf
27 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).ta
32 link-ldflags += -Map=$(link-out-dir$(sm))/$(user-ta-uuid).map
75 ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \
[all …]
/optee_os/lib/libdl/
H A Ddlfcn.c35 TEE_UUID uuid; member
44 TEE_UUID uuid = { }; in dlopen() local
51 res = tee_uuid_from_str(&uuid, filename); in dlopen()
60 params[0].memref.buffer = (void *)&uuid; in dlopen()
61 params[0].memref.size = sizeof(uuid); in dlopen()
73 h->uuid = uuid; in dlopen()
107 params[0].memref.buffer = &h->uuid; in dlsym()
108 params[0].memref.size = sizeof(h->uuid); in dlsym()
/optee_os/core/pta/
H A Ddevice.c24 static void add_ta(uint32_t flags, const TEE_UUID *uuid, uint8_t *buf, in add_ta() argument
32 EMSG(PTA_NAME ": skipping TA %pUl, inconsistent flags", uuid); in add_ta()
37 if (*pos + sizeof(*uuid) <= blen) in add_ta()
38 tee_uuid_to_octets(buf + *pos, uuid); in add_ta()
40 *pos += sizeof(*uuid); in add_ta()
67 add_ta(ta->flags, &ta->uuid, buf, blen, &pos, rflags); in get_devices()
75 add_ta(eta->flags, &eta->uuid, buf, blen, &pos, in get_devices()
122 pseudo_ta_register(.uuid = PTA_DEVICE_UUID, .name = PTA_NAME,
H A Dsecstor_ta_mgmt.c22 TEE_UUID uuid; in check_install_conflict() local
25 tee_uuid_from_octets(&uuid, bs_ta->uuid); in check_install_conflict()
26 res = tee_tadb_ta_open(&uuid, &ta); in check_install_conflict()
94 COMPILE_TIME_ASSERT(sizeof(property.uuid) == sizeof(bs_ta.uuid)); in install_ta()
95 tee_uuid_from_octets(&property.uuid, bs_ta.uuid); in install_ta()
99 DMSG("Installing %pUl", (void *)&property.uuid); in install_ta()
180 pseudo_ta_register(.uuid = PTA_SECSTOR_TA_MGMT_UUID, .name = "secstor_ta_mgmt",
H A Dgprof.c17 static TEE_Result gprof_send_rpc(TEE_UUID *uuid, void *buf, size_t len, in gprof_send_rpc() argument
25 mobj = thread_rpc_alloc_payload(sizeof(*uuid) + len); in gprof_send_rpc()
29 va = mobj_get_va(mobj, 0, sizeof(*uuid) + len); in gprof_send_rpc()
33 memcpy(va, uuid, sizeof(*uuid)); in gprof_send_rpc()
34 memcpy(va + sizeof(*uuid), buf, len); in gprof_send_rpc()
37 params[1] = THREAD_PARAM_MEMREF(IN, mobj, 0, sizeof(*uuid)); in gprof_send_rpc()
38 params[2] = THREAD_PARAM_MEMREF(IN, mobj, sizeof(*uuid), len); in gprof_send_rpc()
61 return gprof_send_rpc(&s->ctx->uuid, params[1].memref.buffer, in gprof_send()
181 pseudo_ta_register(.uuid = PTA_GPROF_UUID, .name = "gprof",
H A Dsystem.c108 memcpy(data, &uctx->ts_ctx->uuid, sizeof(TEE_UUID)); in system_derive_ta_unique_key()
233 TEE_UUID uuid = { }; in system_dlopen() local
239 if (!params[0].memref.buffer || params[0].memref.size != sizeof(uuid)) in system_dlopen()
242 res = copy_from_user(&uuid, params[0].memref.buffer, sizeof(uuid)); in system_dlopen()
249 res = ldelf_dlopen(uctx, &uuid, flags); in system_dlopen()
265 TEE_UUID uuid = { }; in system_dlsym() local
272 if (!params[0].memref.buffer || params[0].memref.size != sizeof(uuid)) in system_dlsym()
275 res = copy_from_user(&uuid, params[0].memref.buffer, sizeof(uuid)); in system_dlsym()
287 res = ldelf_dlsym(uctx, &uuid, sym, symlen, &va); in system_dlsym()
325 TEE_UUID uuid = { }; in system_supp_plugin_invoke() local
[all …]
/optee_os/ta/pkcs11/src/
H A Dpersistent_token.c209 res = tee_uuid_from_str(&identity.uuid, uuid_str); in setup_identity_auth_from_pin()
293 static int get_persistent_obj_idx(struct ck_token *token, TEE_UUID *uuid) in get_persistent_obj_idx() argument
297 if (!uuid) in get_persistent_obj_idx()
302 uuid, sizeof(TEE_UUID))) in get_persistent_obj_idx()
312 assert(!obj->uuid); in create_object_uuid()
314 obj->uuid = TEE_Malloc(sizeof(TEE_UUID), in create_object_uuid()
316 if (!obj->uuid) in create_object_uuid()
322 TEE_GenerateRandom(obj->uuid, sizeof(TEE_UUID)); in create_object_uuid()
323 } while (get_persistent_obj_idx(token, obj->uuid) >= 0); in create_object_uuid()
331 assert(get_persistent_obj_idx(token, obj->uuid) < 0); in destroy_object_uuid()
[all …]
/optee_os/ldelf/
H A Ddl.c18 if (!memcmp(&arg->dlopen.uuid, &zero, sizeof(zero))) in dlopen_entry()
21 return ta_elf_add_library(&arg->dlopen.uuid); in dlopen_entry()
29 if (memcmp(&arg->dlsym.uuid, &zero, sizeof(zero))) { in dlsym_entry()
30 elf = ta_elf_find_elf(&arg->dlsym.uuid); in dlsym_entry()
/optee_os/scripts/
H A Dsign_encrypt.py43 from uuid import UUID
56 from uuid import UUID
177 return str(parsed.uuid) + '.ta'
180 return str(parsed.uuid) + '.stripped.elf'
183 return str(parsed.uuid) + '.sig'
186 return str(parsed.uuid) + '.dig'
390 def encrypt_ta(self, enc_key, key_type, sig_algo, uuid, ta_version): argument
410 self.ta_uuid = uuid.bytes
414 def set_bootstrap_ta(self, sig_algo, uuid, ta_version): argument
419 self.ta_uuid = uuid.bytes
[all …]
/optee_os/core/include/tee/
H A Dtee_fs_key_manager.h19 TEE_Result tee_fs_generate_fek(const TEE_UUID *uuid, void *encrypted_fek,
21 TEE_Result tee_fs_crypt_block(const TEE_UUID *uuid, uint8_t *out,
26 TEE_Result tee_fs_fek_crypt(const TEE_UUID *uuid, TEE_OperationMode mode,
H A Dfs_dirfile.h38 const TEE_UUID *uuid,
99 const TEE_UUID *uuid, const void *oid,
123 const TEE_UUID *uuid,
155 const TEE_UUID *uuid, int *idx, void *oid,
/optee_os/core/include/kernel/
H A Dembedded_ts.h17 TEE_UUID uuid; member
29 TEE_Result emb_ts_open(const TEE_UUID *uuid,
32 (const TEE_UUID *uuid));
/optee_os/lib/libutils/ext/
H A Dsnprintk.c227 } *uuid = ptr; in uuid2str() local
231 uuid->lo, uuid->mid, uuid->hi_ver, in uuid2str()
232 uuid->seq_n[0], uuid->seq_n[1], in uuid2str()
233 uuid->seq_n[2], uuid->seq_n[3], in uuid2str()
234 uuid->seq_n[4], uuid->seq_n[5], in uuid2str()
235 uuid->seq_n[6], uuid->seq_n[7]); in uuid2str()
/optee_os/core/crypto/
H A Dsigned_hdr.c200 static TEE_Result calc_next_uuid(uint8_t uuid[sizeof(TEE_UUID)], in calc_next_uuid()
208 TEE_UUID uuid; in calc_next_uuid() member
213 memcpy(uuid, my_uuid, sizeof(TEE_UUID)); in calc_next_uuid()
236 tee_uuid_from_octets(&tmp->uuid, tmp->digest); in calc_next_uuid()
241 tmp->uuid.timeHiAndVersion &= ~SHIFT_U32(0xf, 12); in calc_next_uuid()
242 tmp->uuid.timeHiAndVersion |= SHIFT_U32(5, 12); in calc_next_uuid()
247 tmp->uuid.clockSeqAndNode[0] &= ~BIT(6); in calc_next_uuid()
248 tmp->uuid.clockSeqAndNode[0] |= BIT(7); in calc_next_uuid()
250 tee_uuid_to_octets(uuid, &tmp->uuid); in calc_next_uuid()
311 if (next_uuid && memcmp(next_uuid, subkey->uuid, sizeof(TEE_UUID))) { in shdr_load_pub_key()
[all …]
/optee_os/lib/libutee/
H A Dtee_system_pta.c18 static const TEE_UUID uuid = PTA_SYSTEM_UUID; in invoke_system_pta() local
21 TEE_Result res = TEE_OpenTASession(&uuid, TEE_TIMEOUT_INFINITE, in invoke_system_pta()
81 TEE_Result tee_invoke_supp_plugin(const TEE_UUID *uuid, uint32_t cmd, in tee_invoke_supp_plugin() argument
92 if (!uuid || (len && !buf) || (!len && buf)) in tee_invoke_supp_plugin()
95 params[0].memref.buffer = (void *)uuid; in tee_invoke_supp_plugin()
/optee_os/ta/mk/
H A Dbuild-user-ta.mk26 ifeq ($(user-ta-uuid),)
27 $(error user-ta-uuid missing in $(ta-mk-file))
69 ta_dev_kit: $(out-dir)/export-$(ta-target)/ta/$(user-ta-uuid).ta
71 $(out-dir)/export-$(ta-target)/ta/$(user-ta-uuid).ta: $(link-out-dir$(sm))/$(user-ta-uuid).ta
76 cleanfiles += $(out-dir)/export-$(ta-target)/ta/$(user-ta-uuid).ta
/optee_os/core/
H A Dsub.mk28 early-ta-$1-uuid := $(firstword $(subst ., ,$(notdir $1)))
30 produce-early-ta-$1 = early_ta_$$(early-ta-$1-uuid).c
33 --ta $1 --out $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c
41 sp-$1-uuid := $(firstword $(subst ., ,$(notdir $1)))
43 produce-sp-$1 = sp_$$(sp-$1-uuid).c
46 dtb-$1 = $$(dtb-$1-path)../manifest/$$(sp-$1-uuid).dtb
48 --out $(sub-dir-out)/sp_$$(sp-$1-uuid).c \
/optee_os/ldelf/include/
H A Dldelf.h32 TEE_UUID uuid; member
88 TEE_UUID uuid; /* in */ member
92 TEE_UUID uuid; /* in */ member

12345