Home
last modified time | relevance | path

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

12345

/optee_os-3.20.0/core/arch/arm/sm/
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-3.20.0/core/tee/
A Dtee_time_generic.c14 TEE_UUID uuid; member
22 static TEE_Result tee_time_ta_get_offs(const TEE_UUID *uuid, in tee_time_ta_get_offs() argument
28 if (memcmp(uuid, &tee_time_offs[n].uuid, sizeof(TEE_UUID)) in tee_time_ta_get_offs()
38 static TEE_Result tee_time_ta_set_offs(const TEE_UUID *uuid, in tee_time_ta_set_offs() argument
45 if (memcmp(uuid, &tee_time_offs[n].uuid, sizeof(TEE_UUID)) in tee_time_ta_set_offs()
58 tee_time_offs[tee_time_num_offs].uuid = *uuid; in tee_time_ta_set_offs()
65 TEE_Result tee_time_get_ta_time(const TEE_UUID *uuid, TEE_Time *time) in tee_time_get_ta_time() argument
73 res = tee_time_ta_get_offs(uuid, &offs, &positive); in tee_time_get_ta_time()
99 TEE_Result tee_time_set_ta_time(const TEE_UUID *uuid, const TEE_Time *time) in tee_time_set_ta_time() argument
115 return tee_time_ta_set_offs(uuid, &offs, true); in tee_time_set_ta_time()
[all …]
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()
A Dtee_fs_key_manager.c74 TEE_Result tee_fs_fek_crypt(const TEE_UUID *uuid, TEE_OperationMode mode, in tee_fs_fek_crypt() argument
92 if (uuid) { in tee_fs_fek_crypt()
94 TEE_FS_KM_SSK_SIZE, uuid, sizeof(*uuid)); in tee_fs_fek_crypt()
155 TEE_Result tee_fs_generate_fek(const TEE_UUID *uuid, void *buf, size_t buf_size) in tee_fs_generate_fek() argument
166 return tee_fs_fek_crypt(uuid, TEE_MODE_ENCRYPT, buf, in tee_fs_generate_fek()
230 TEE_Result tee_fs_crypt_block(const TEE_UUID *uuid, uint8_t *out, in tee_fs_crypt_block() argument
244 res = tee_fs_fek_crypt(uuid, TEE_MODE_DECRYPT, encrypted_fek, in tee_fs_crypt_block()
A Dtee_supp_plugin_rpc.c18 TEE_Result tee_invoke_supp_plugin_rpc(const TEE_UUID *uuid, uint32_t cmd, in tee_invoke_supp_plugin_rpc() argument
38 if (!uuid || (len && !buf) || (!len && buf)) in tee_invoke_supp_plugin_rpc()
57 tee_uuid_to_octets((uint8_t *)uuid_words, uuid); in tee_invoke_supp_plugin_rpc()
/optee_os-3.20.0/core/kernel/
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()
/optee_os-3.20.0/ta/arch/arm/
A Dlink.mk19 all: $(link-out-dir$(sm))/$(user-ta-uuid).dmp \
20 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \
21 $(link-out-dir$(sm))/$(user-ta-uuid).ta
94 $(link-out-dir$(sm))/$(user-ta-uuid).dmp: \
95 $(link-out-dir$(sm))/$(user-ta-uuid).elf
100 $(link-out-dir$(sm))/$(user-ta-uuid).elf
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 …]
/optee_os-3.20.0/core/pta/
A Ddevice.c23 static void add_ta(uint32_t flags, const TEE_UUID *uuid, uint8_t *buf, in add_ta() argument
28 EMSG(PTA_NAME ": skipping TA %pUl, inconsistent flags", uuid); in add_ta()
33 if (*pos + sizeof(*uuid) <= blen) in add_ta()
34 tee_uuid_to_octets(buf + *pos, uuid); in add_ta()
36 *pos += sizeof(*uuid); in add_ta()
63 add_ta(ta->flags, &ta->uuid, buf, blen, &pos, rflags); in get_devices()
67 add_ta(eta->flags, &eta->uuid, buf, blen, &pos, in get_devices()
95 pseudo_ta_register(.uuid = PTA_DEVICE_UUID, .name = PTA_NAME,
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",
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",
A Dsystem.c103 memcpy(data, &uctx->ts_ctx->uuid, sizeof(TEE_UUID)); in system_derive_ta_unique_key()
214 TEE_UUID *uuid = NULL; in system_dlopen() local
220 uuid = params[0].memref.buffer; in system_dlopen()
221 if (!uuid || params[0].memref.size != sizeof(*uuid)) in system_dlopen()
227 res = ldelf_dlopen(uctx, uuid, flags); in system_dlopen()
243 TEE_UUID *uuid = NULL; in system_dlsym() local
250 uuid = params[0].memref.buffer; in system_dlsym()
251 if (!uuid || params[0].memref.size != sizeof(*uuid)) in system_dlsym()
260 res = ldelf_dlsym(uctx, uuid, sym, maxlen, &va); in system_dlsym()
360 pseudo_ta_register(.uuid = PTA_SYSTEM_UUID, .name = "system.pta",
/optee_os-3.20.0/lib/libdl/
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-3.20.0/ldelf/
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-3.20.0/ta/pkcs11/src/
A Dpersistent_token.c297 if (!uuid) in get_persistent_obj_idx()
312 assert(!obj->uuid); in create_object_uuid()
316 if (!obj->uuid) in create_object_uuid()
333 TEE_Free(obj->uuid); in destroy_object_uuid()
334 obj->uuid = NULL; in destroy_object_uuid()
362 if (!uuid) in unregister_persistent_object()
416 TEE_UUID *uuid) in register_persistent_object() argument
482 obj->uuid, sizeof(*obj->uuid), in load_persistent_object_attributes()
554 obj->uuid, sizeof(*obj->uuid), in update_persistent_object_attributes()
637 if (!uuid) in init_persistent_db()
[all …]
/optee_os-3.20.0/core/include/kernel/
A Dembedded_ts.h17 TEE_UUID uuid; member
28 TEE_Result emb_ts_open(const TEE_UUID *uuid,
31 (const TEE_UUID *uuid));
A Dtee_time.h13 TEE_Result tee_time_get_ta_time(const TEE_UUID *uuid, TEE_Time *time);
15 TEE_Result tee_time_set_ta_time(const TEE_UUID *uuid, const TEE_Time *time);
/optee_os-3.20.0/core/include/tee/
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,
A Dfs_dirfile.h37 TEE_Result (*open)(bool create, uint8_t *hash, const TEE_UUID *uuid,
95 const TEE_UUID *uuid, const void *oid,
119 const TEE_UUID *uuid,
151 const TEE_UUID *uuid, int *idx, void *oid,
/optee_os-3.20.0/scripts/
A Dsign_encrypt.py43 from uuid import UUID
56 from uuid import UUID
574 import uuid
875 import uuid
883 print('Subkey UUID: {}'.format(uuid.UUID(bytes=image.uuid)))
887 if uuid.UUID(bytes=image.uuid) != next_uuid:
889 .format(uuid.UUID(bytes=image.uuid),
930 import uuid
937 print('Subkey UUID: {}'.format(uuid.UUID(bytes=sk_image.uuid)))
941 print('Subkey UUID: {}'.format(uuid.UUID(bytes=sk_image.uuid)))
[all …]
/optee_os-3.20.0/core/crypto/
A Dsigned_hdr.c185 static TEE_Result calc_next_uuid(uint8_t uuid[sizeof(TEE_UUID)], in calc_next_uuid()
193 TEE_UUID uuid; in calc_next_uuid() member
198 memcpy(uuid, my_uuid, sizeof(TEE_UUID)); in calc_next_uuid()
221 tee_uuid_from_octets(&tmp->uuid, tmp->digest); in calc_next_uuid()
226 tmp->uuid.timeHiAndVersion &= ~SHIFT_U32(0xf, 12); in calc_next_uuid()
227 tmp->uuid.timeHiAndVersion |= SHIFT_U32(5, 12); in calc_next_uuid()
232 tmp->uuid.clockSeqAndNode[0] &= ~BIT(6); in calc_next_uuid()
233 tmp->uuid.clockSeqAndNode[0] |= BIT(7); in calc_next_uuid()
235 tee_uuid_to_octets(uuid, &tmp->uuid); in calc_next_uuid()
303 memcpy(key->uuid, subkey->uuid, sizeof(TEE_UUID)); in shdr_load_pub_key()
[all …]
/optee_os-3.20.0/lib/libutee/
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-3.20.0/core/arch/arm/kernel/
A Dsecure_partition.c76 if (!memcmp(&sp->image.uuid, uuid, sizeof(*uuid))) in find_secure_partition()
81 if (!memcmp(&fip_sp->sp_img.image.uuid, uuid, sizeof(*uuid))) in find_secure_partition()
103 if (!memcmp(&s->ts_sess.ctx->uuid, uuid, sizeof(*uuid))) { in sp_find_session_id()
200 spc->ts_ctx.uuid = *uuid; in sp_create_ctx()
216 const TEE_UUID *uuid, in sp_create_session() argument
232 res = sp_create_ctx(uuid, s); in sp_create_session()
323 const TEE_UUID *uuid) in sp_open_session() argument
896 uuid); in sp_init_uuid()
900 res = check_fdt(fdt, uuid); in sp_init_uuid()
1292 &sp->image.uuid, res); in sp_init_all()
[all …]
/optee_os-3.20.0/lib/libutils/ext/
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-3.20.0/ta/mk/
A Dbuild-user-ta.mk26 ifeq ($(user-ta-uuid),)
27 $(error user-ta-uuid missing in $(ta-mk-file))
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
78 cleanfiles += $(out-dir)/export-$(ta-target)/ta/$(user-ta-uuid).ta
/optee_os-3.20.0/ldelf/include/
A Dldelf.h31 TEE_UUID uuid; member
81 TEE_UUID uuid; /* in */ member
85 TEE_UUID uuid; /* in */ member

Completed in 26 milliseconds

12345