| /optee_os/core/tee/ |
| H A D | tee_obj.c | 15 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_add() argument 17 TAILQ_INSERT_TAIL(&utc->objects, o, link); in tee_obj_add() 23 struct tee_obj *o; in tee_obj_get() local 25 TAILQ_FOREACH(o, &utc->objects, link) { in tee_obj_get() 26 if (obj_id == (vaddr_t)o) { in tee_obj_get() 27 *obj = o; in tee_obj_get() 34 void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_close() argument 36 TAILQ_REMOVE(&utc->objects, o, link); in tee_obj_close() 38 if ((o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) { in tee_obj_close() 39 o->pobj->fops->close(&o->fh); in tee_obj_close() [all …]
|
| H A D | tee_svc_storage.c | 76 static void remove_corrupt_obj(struct user_ta_ctx *utc, struct tee_obj *o) in remove_corrupt_obj() argument 78 o->pobj->fops->remove(o->pobj); in remove_corrupt_obj() 80 tee_obj_close(utc, o); in remove_corrupt_obj() 83 static TEE_Result tee_svc_storage_read_head(struct tee_obj *o) in tee_svc_storage_read_head() argument 88 const struct tee_file_operations *fops = o->pobj->fops; in tee_svc_storage_read_head() 93 assert(!o->fh); in tee_svc_storage_read_head() 94 res = fops->open(o->pobj, &size, &o->fh); in tee_svc_storage_read_head() 100 res = fops->read(o->fh, 0, &head, NULL, &bytes); in tee_svc_storage_read_head() 121 res = tee_obj_set_type(o, head.objectType, head.maxObjectSize); in tee_svc_storage_read_head() 125 o->ds_pos = tmp; in tee_svc_storage_read_head() [all …]
|
| H A D | tee_pobj.c | 85 struct tee_pobj *o = NULL; in tee_pobj_get() local 91 TAILQ_FOREACH(o, &tee_pobjs, link) { in tee_pobj_get() 92 if ((obj_id_len == o->obj_id_len) && in tee_pobj_get() 93 (memcmp(obj_id, o->obj_id, obj_id_len) == 0) && in tee_pobj_get() 94 (memcmp(uuid, &o->uuid, sizeof(TEE_UUID)) == 0) && in tee_pobj_get() 95 (fops == o->fops)) { in tee_pobj_get() 96 *obj = o; in tee_pobj_get() 117 o = calloc(1, sizeof(struct tee_pobj)); in tee_pobj_get() 118 if (!o) { in tee_pobj_get() 123 o->refcnt = 1; in tee_pobj_get() [all …]
|
| H A D | tee_svc_cryp.c | 1179 struct tee_obj *o = NULL; in syscall_cryp_obj_get_info() local 1182 uref_to_vaddr(obj), &o); in syscall_cryp_obj_get_info() 1186 o_info.obj_type = o->info.objectType; in syscall_cryp_obj_get_info() 1187 o_info.obj_size = o->info.objectSize; in syscall_cryp_obj_get_info() 1188 o_info.max_obj_size = o->info.maxObjectSize; in syscall_cryp_obj_get_info() 1189 if (o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT) { in syscall_cryp_obj_get_info() 1190 tee_pobj_lock_usage(o->pobj); in syscall_cryp_obj_get_info() 1191 o_info.obj_usage = o->pobj->obj_info_usage; in syscall_cryp_obj_get_info() 1192 tee_pobj_unlock_usage(o->pobj); in syscall_cryp_obj_get_info() 1194 o_info.obj_usage = o->info.objectUsage; in syscall_cryp_obj_get_info() [all …]
|
| H A D | tee_time_generic.c | 41 struct tee_ta_time_offs *o; in tee_time_ta_set_offs() local 53 o = realloc(tee_time_offs, n * sizeof(struct tee_ta_time_offs)); in tee_time_ta_set_offs() 54 if (!o) in tee_time_ta_set_offs() 56 tee_time_offs = o; in tee_time_ta_set_offs()
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | fault_mitigation.h | 155 #define __FTMN_FUNC_BYTE(f, o, l) ((o) < (l) ? (uint8_t)(f)[(o)] : 0) argument 158 #define __FTMN_GET_FUNC_U32(f, o, l) \ argument 159 (SHIFT_U32(__FTMN_FUNC_BYTE((f), (o), (l)), 0) | \ 160 SHIFT_U32(__FTMN_FUNC_BYTE((f), (o) + 1, (l)), 8) | \ 161 SHIFT_U32(__FTMN_FUNC_BYTE((f), (o) + 2, (l)), 16) | \ 162 SHIFT_U32(__FTMN_FUNC_BYTE((f), (o) + 3, (l)), 24)) 164 #define __FTMN_FUNC_HASH64(f, o, l) \ argument 165 (__FTMN_GET_FUNC_U32((f), (o), (l)) ^ \ 166 __FTMN_GET_FUNC_U32((f), (o) + 4, (l))) 168 #define __FTMN_FUNC_HASH32(f, o, l) \ argument [all …]
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | storage.c | 16 TEE_Result crypto_storage_obj_del(struct tee_obj *o) in crypto_storage_obj_del() argument 27 if (!o) in crypto_storage_obj_del() 30 len = o->info.dataSize; in crypto_storage_obj_del() 41 ret = o->pobj->fops->read(o->fh, o->info.dataPosition, in crypto_storage_obj_del()
|
| /optee_os/core/include/tee/ |
| H A D | tee_obj.h | 27 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o); 32 void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o); 36 TEE_Result tee_obj_verify(struct tee_ta_session *sess, struct tee_obj *o); 39 void tee_obj_free(struct tee_obj *o);
|
| H A D | tee_svc_cryp.h | 85 TEE_Result tee_obj_set_type(struct tee_obj *o, uint32_t obj_type, 88 void tee_obj_attr_free(struct tee_obj *o); 89 void tee_obj_attr_clear(struct tee_obj *o); 90 TEE_Result tee_obj_attr_to_binary(struct tee_obj *o, void *data, 92 TEE_Result tee_obj_attr_from_binary(struct tee_obj *o, const void *data, 94 TEE_Result tee_obj_attr_copy_from(struct tee_obj *o, const struct tee_obj *src);
|
| H A D | tee_svc_storage.h | 63 TEE_Result tee_svc_storage_write_usage(struct tee_obj *o, uint32_t usage);
|
| /optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
| H A D | tweetnacl.c | 47 sv car25519(gf o) in car25519() argument 52 o[i]+=(1LL<<16); in car25519() 53 c=o[i]>>16; in car25519() 54 o[(i+1)*(i<15)]+=c-1+37*(c-1)*(i==15); in car25519() 55 o[i]-=c<<16; in car25519() 69 sv pack25519(u8 *o,const gf n) in pack25519() argument 89 o[2*i]=t[i]&0xff; in pack25519() 90 o[2*i+1]=t[i]>>8; in pack25519() 109 sv unpack25519(gf o, const u8 *n) in unpack25519() argument 112 FOR(i,16) o[i]=n[2*i]+((u64)n[2*i+1]<<8); in unpack25519() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | link.mk | 45 $(out-dir)/$(platform-dir)/link_dummies_paged.o \ 46 $(out-dir)/$(platform-dir)/link_dummies_init.o \ 47 $(out-dir)/$(arch-dir)/kernel/link_dummies_paged.o \ 48 $(out-dir)/$(arch-dir)/kernel/link_dummies_init.o, \ 51 $(out-dir)/$(platform-dir)/link_dummies_init.o \ 52 $(out-dir)/$(arch-dir)/kernel/link_dummies_init.o, \ 54 ldargs-tee.elf := $(link-ldflags) $(link-objs) $(link-out-dir)/version.o \ 66 cleanfiles += $(link-out-dir)/all_objs.o 67 $(link-out-dir)/all_objs.o: $(objs) $(libdeps) $(MAKEFILE_LIST) 72 $(link-out-dir)/unpaged_entries.txt: $(link-out-dir)/all_objs.o [all …]
|
| /optee_os/mk/ |
| H A D | subdir.mk | 66 oname := $(out-dir)/$(base-prefix)$(basename $1).o 72 oname := $(out-dir)/$(base-prefix)$(basename $1).o 76 oname := $(out-dir)/$(base-prefix)$(basename $$(sub-dir)/$1).o 89 oname := $(out-dir)/$(base-prefix)$(basename $1).o 91 oname := $(out-dir)/$(base-prefix)$(basename $$(sub-dir)/$1).o 122 …r,$1,$(sub-dir-out)/$$(produce-$1),$(sub-dir-out)/$(basename $(produce-$1)).o,$(sub-dir-out),$(for…
|
| H A D | macros.mk | 42 -xc - -c -o version.o
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | link.mk | 27 ldargs-tee.elf := $(link-ldflags) $(link-objs) $(link-out-dir)/version.o \ 39 cleanfiles += $(link-out-dir)/all_objs.o 40 $(link-out-dir)/all_objs.o: $(objs) $(libdeps) $(MAKEFILE_LIST) 54 $(link-out-dir)/version.o: 66 cleanfiles += $(link-out-dir)/version.o
|
| /optee_os/keys/ |
| H A D | default.pem | 34 mTH0UYfcfGuV4+9o/ywgQlylPEjv+4ney6cBUTNqQEO2mRj2EBK2axJaHrrRXTcz 42 yDOxJEqwFoS44ln6UsMKPfq96f3K976NV/dm1BnT2HolWU2aoQp7qByBfVy/o/xL
|
| H A D | default_ta.pem | 34 mTH0UYfcfGuV4+9o/ywgQlylPEjv+4ney6cBUTNqQEO2mRj2EBK2axJaHrrRXTcz 42 yDOxJEqwFoS44ln6UsMKPfq96f3K976NV/dm1BnT2HolWU2aoQp7qByBfVy/o/xL
|
| /optee_os/core/pta/tests/ |
| H A D | fs_htree.c | 410 size_t o = 0; in aux_alloc() local 413 if (test_get_offs_size(TEE_FS_HTREE_TYPE_BLOCK, num_blocks, 1, &o, &sz)) in aux_alloc() 420 aux->data_alloced = o + sz; in aux_alloc() 442 size_t o = 0; in test_write_read() local 456 for (o = 0; o < (n - m); o++) { in test_write_read() 457 res = htree_test_rewrite(aux, n, m, o); in test_write_read() 459 o += 2; in test_write_read()
|
| /optee_os/core/include/kernel/ |
| H A D | lockdep.h | 139 struct lockdep_lock_head *o __unused, in lockdep_lock_acquire() 143 static inline void lockdep_lock_release(struct lockdep_lock_head *o __unused, in lockdep_lock_release()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | aesce.c | 577 uint8x16_t c, d, e, f, g, n, o; in poly_mult_reduce() local 587 o = veorq_u8(n, f); /* o1:o0 = f1:f0 + n1:n0 */ in poly_mult_reduce() 588 return veorq_u8(o, g); /* = o1:o0 + g1:00 */ in poly_mult_reduce()
|
| /optee_os/scripts/ |
| H A D | sign_encrypt.py | 553 o = subkey_offs + UUID_SIZE + SK_HDR_SIZE + n * 12 555 attr_len] = struct.unpack('<III', self.inf[o: o + 12]) 557 o = subkey_offs + attr_offs 558 return self.inf[o:o + attr_len]
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_hash.h | 450 #define tiger2_done(m, o) tiger_done(m, o) argument
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/build/Win32-SSE2-MinGW/ |
| H A D | Makefile | 50 OBJ = .o
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/build/Linux-386-GCC/ |
| H A D | Makefile | 50 OBJ = .o
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/build/Win32-MinGW/ |
| H A D | Makefile | 50 OBJ = .o
|