Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 34) sorted by relevance

12

/optee_os/ta/pkcs11/src/
A Dobject.c85 if (!obj) in cleanup_volatile_obj_ref()
98 TEE_Free(obj); in cleanup_volatile_obj_ref()
107 if (!obj) in cleanup_persistent_object()
139 if (obj->uuid) in destroy_object()
176 if (!obj) in create_obj_instance()
184 return obj; in create_obj_instance()
193 if (obj) in create_token_object()
196 return obj; in create_token_object()
224 if (!obj) in create_object()
785 if (!obj) { in entry_get_attribute_value()
[all …]
A Dprocessing_asymm.c53 struct pkcs11_object *obj) in pkcs2tee_algorithm() argument
147 struct pkcs11_object *obj, in pkcs2tee_key_type() argument
189 struct pkcs11_object *obj) in allocate_tee_operation() argument
243 struct pkcs11_object *obj, in load_tee_key() argument
268 switch (obj->key_type) { in load_tee_key()
284 TEE_CloseObject(obj->key_handle); in load_tee_key()
288 rc = pkcs2tee_key_type(&obj->key_type, obj, function); in load_tee_key()
310 &obj->key_handle); in load_tee_key()
330 obj->key_handle); in load_tee_key()
348 struct pkcs11_object *obj) in init_tee_operation() argument
[all …]
A Dpersistent_token.c312 assert(!obj->uuid); in create_object_uuid()
316 if (!obj->uuid) in create_object_uuid()
319 obj->token = token; in create_object_uuid()
333 TEE_Free(obj->uuid); in destroy_object_uuid()
334 obj->uuid = NULL; in destroy_object_uuid()
477 if (obj->attributes) in load_persistent_object_attributes()
482 obj->uuid, sizeof(*obj->uuid), in load_persistent_object_attributes()
524 obj->attributes = attr; in load_persistent_object_attributes()
551 assert(obj && obj->attributes); in update_persistent_object_attributes()
554 obj->uuid, sizeof(*obj->uuid), in update_persistent_object_attributes()
[all …]
A Dprocessing_ec.c324 struct pkcs11_object *obj) in load_tee_ec_key_attrs() argument
332 switch (get_class(obj->attributes)) { in load_tee_ec_key_attrs()
340 obj, PKCS11_CKA_EC_PARAMS)) in load_tee_ec_key_attrs()
345 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
350 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
365 obj, PKCS11_CKA_EC_PARAMS)) in load_tee_ec_key_attrs()
370 obj, PKCS11_CKA_VALUE)) in load_tee_ec_key_attrs()
375 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
380 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
405 struct pkcs11_object *obj) in pkcs2tee_algo_ecdsa() argument
[all …]
A Dprocessing_rsa.c60 struct pkcs11_object *obj) in pkcs2tee_validate_rsa_pss() argument
91 modulus_size = get_object_key_bit_size(obj); in pkcs2tee_validate_rsa_pss()
352 struct pkcs11_object *obj) in load_tee_rsa_key_attrs() argument
361 switch (get_class(obj->attributes)) { in load_tee_rsa_key_attrs()
369 obj, PKCS11_CKA_MODULUS)) in load_tee_rsa_key_attrs()
373 TEE_ATTR_RSA_PUBLIC_EXPONENT, obj, in load_tee_rsa_key_attrs()
389 obj, PKCS11_CKA_MODULUS)) in load_tee_rsa_key_attrs()
393 TEE_ATTR_RSA_PUBLIC_EXPONENT, obj, in load_tee_rsa_key_attrs()
424 obj, PKCS11_CKA_EXPONENT_1)) in load_tee_rsa_key_attrs()
428 obj, PKCS11_CKA_EXPONENT_2)) in load_tee_rsa_key_attrs()
[all …]
A Dprocessing_symm.c104 struct pkcs11_object *obj) in pkcs2tee_key_type() argument
202 struct pkcs11_object *obj) in allocate_tee_operation() argument
272 struct pkcs11_object *obj, in hash_secret_helper() argument
308 struct pkcs11_object *obj, in load_tee_key() argument
320 if (obj->key_handle != TEE_HANDLE_NULL) { in load_tee_key()
370 obj, in load_tee_key()
384 obj, PKCS11_CKA_VALUE)) { in load_tee_key()
392 &obj->key_handle); in load_tee_key()
406 obj->key_handle); in load_tee_key()
416 obj->key_handle = TEE_HANDLE_NULL; in load_tee_key()
[all …]
A Dprocessing.h81 size_t get_object_key_bit_size(struct pkcs11_object *obj);
100 struct pkcs11_object *obj);
145 struct pkcs11_object *obj,
153 struct pkcs11_object *obj);
161 struct pkcs11_object *obj);
174 struct pkcs11_object *obj);
181 struct pkcs11_object *obj);
A Dprocessing_digest.c107 struct pkcs11_object *obj, in step_digest_operation() argument
157 assert(obj); in step_digest_operation()
162 if (get_class(obj->attributes) != PKCS11_CKO_SECRET_KEY) in step_digest_operation()
165 key_type = get_key_type(obj->attributes); in step_digest_operation()
171 rc = get_attribute_ptr(obj->attributes, PKCS11_CKA_VALUE, in step_digest_operation()
A Dpkcs11_attributes.c1810 struct pkcs11_object *obj) in attribute_is_exportable() argument
1863 struct pkcs11_object *obj) in attr_is_modifiable_secret_key() argument
1875 return get_bool(obj->attributes, attr->id); in attr_is_modifiable_secret_key()
1893 struct pkcs11_object *obj __unused) in attr_is_modifiable_public_key()
1912 struct pkcs11_object *obj) in attr_is_modifiable_private_key() argument
1933 return get_bool(obj->attributes, attr->id); in attr_is_modifiable_private_key()
1948 struct pkcs11_object *obj) in attr_is_modifiable_certificate() argument
2002 struct pkcs11_object *obj, in attribute_is_modifiable() argument
2059 struct pkcs11_object *obj, in check_attrs_against_modification() argument
2067 class = get_class(obj->attributes); in check_attrs_against_modification()
[all …]
A Dprocessing.c128 struct obj_attrs *attrs = obj->attributes; in get_object_key_bit_size()
593 struct pkcs11_object *obj = NULL; in entry_processing_init() local
624 obj = pkcs11_handle2object(key_handle, session); in entry_processing_init()
625 if (!obj) { in entry_processing_init()
641 if (obj) { in entry_processing_init()
644 obj->attributes); in entry_processing_init()
649 obj->attributes); in entry_processing_init()
699 struct pkcs11_object *obj = NULL; in entry_processing_step() local
729 obj = pkcs11_handle2object(key_handle, session); in entry_processing_step()
730 if (!obj) { in entry_processing_step()
[all …]
A Dpkcs11_token.h214 enum pkcs11_rc load_persistent_object_attributes(struct pkcs11_object *obj);
215 void release_persistent_object_attributes(struct pkcs11_object *obj);
216 enum pkcs11_rc update_persistent_object_attributes(struct pkcs11_object *obj);
259 struct pkcs11_object *obj);
260 void destroy_object_uuid(struct ck_token *token, struct pkcs11_object *obj);
/optee_os/core/drivers/crypto/caam/utils/
A Dutils_dmaobj.c678 ret = check_buffer_boundary(obj, &obj->orig, obj->orig.length); in caam_dmaobj_init_input()
741 ret = check_buffer_boundary(obj, &obj->orig, in caam_dmaobj_init_output()
836 if (!obj || !obj->priv) in caam_dmaobj_cache_push()
854 if (!obj || !obj->orig.data || !obj->priv) in caam_dmaobj_copy_to_orig()
900 if (!obj || !obj->orig.data || !obj->priv) in caam_dmaobj_copy_ltrim_to_orig()
976 if (!obj) in caam_dmaobj_free()
986 obj->orig.data, obj->orig.length); in caam_dmaobj_free()
1025 memset(obj, 0, sizeof(*obj)); in caam_dmaobj_free()
1037 if (!obj || !obj->priv || !block) in caam_dmaobj_add_first_block()
1285 if (!obj || !obj->priv || !length || !*length) { in caam_dmaobj_sgtbuf_build()
[all …]
/optee_os/core/tee/
A Dtee_pobj.c68 *obj = NULL; in tee_pobj_get()
77 *obj = o; in tee_pobj_get()
81 if (*obj) { in tee_pobj_get()
83 (*obj)->refcnt++; in tee_pobj_get()
93 (*obj)->refcnt++; in tee_pobj_get()
124 *obj = o; in tee_pobj_get()
129 *obj = NULL; in tee_pobj_get()
144 if (obj == NULL) in tee_pobj_release()
148 obj->refcnt--; in tee_pobj_release()
152 free(obj); in tee_pobj_release()
[all …]
A Dtee_svc_storage.c166 uint32_t *obj) in syscall_storage_obj_open() argument
227 res = copy_kaddr_to_uref(obj, o); in syscall_storage_obj_open()
310 uint32_t *obj) in syscall_storage_obj_create() argument
393 res = copy_kaddr_to_uref(obj, o); in syscall_storage_obj_create()
419 TEE_Result syscall_storage_obj_del(unsigned long obj) in syscall_storage_obj_del() argument
428 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_del()
472 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_rename()
685 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_read()
741 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_write()
783 TEE_Result syscall_storage_obj_trunc(unsigned long obj, size_t len) in syscall_storage_obj_trunc() argument
[all …]
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_utils_dmaobj.h35 TEE_Result caam_dmaobj_init_input(struct caamdmaobj *obj, const void *data,
48 TEE_Result caam_dmaobj_input_sgtbuf(struct caamdmaobj *obj, const void *data,
61 TEE_Result caam_dmaobj_init_output(struct caamdmaobj *obj, void *data,
80 TEE_Result caam_dmaobj_output_sgtbuf(struct caamdmaobj *obj, void *data,
89 void caam_dmaobj_cache_push(struct caamdmaobj *obj);
97 size_t caam_dmaobj_copy_to_orig(struct caamdmaobj *obj);
107 size_t caam_dmaobj_copy_ltrim_to_orig(struct caamdmaobj *obj);
116 void caam_dmaobj_free(struct caamdmaobj *obj);
126 TEE_Result caam_dmaobj_add_first_block(struct caamdmaobj *obj,
139 TEE_Result caam_dmaobj_derive_sgtbuf(struct caamdmaobj *obj,
[all …]
/optee_os/core/include/tee/
A Dtee_svc_storage.h18 uint32_t *obj);
23 uint32_t *obj);
25 TEE_Result syscall_storage_obj_del(unsigned long obj);
27 TEE_Result syscall_storage_obj_rename(unsigned long obj, void *object_id,
48 TEE_Result syscall_storage_obj_read(unsigned long obj, void *data, size_t len,
51 TEE_Result syscall_storage_obj_write(unsigned long obj, void *data,
54 TEE_Result syscall_storage_obj_trunc(unsigned long obj, size_t len);
56 TEE_Result syscall_storage_obj_seek(unsigned long obj, int32_t offset,
A Dtee_svc_cryp.h14 TEE_Result syscall_cryp_obj_get_info(unsigned long obj, TEE_ObjectInfo *info);
15 TEE_Result syscall_cryp_obj_restrict_usage(unsigned long obj,
17 TEE_Result syscall_cryp_obj_get_attr(unsigned long obj, unsigned long attr_id,
21 unsigned long max_key_size, uint32_t *obj);
22 TEE_Result syscall_cryp_obj_close(unsigned long obj);
23 TEE_Result syscall_cryp_obj_reset(unsigned long obj);
24 TEE_Result syscall_cryp_obj_populate(unsigned long obj,
28 TEE_Result syscall_obj_generate_key(unsigned long obj, unsigned long key_size,
A Dtee_pobj.h37 struct tee_pobj **obj);
39 void tee_pobj_create_final(struct tee_pobj *obj);
41 TEE_Result tee_pobj_release(struct tee_pobj *obj);
43 TEE_Result tee_pobj_rename(struct tee_pobj *obj, void *obj_id,
/optee_os/out/arm/export-ta_arm64/host_include/
A Dutee_syscalls.h106 TEE_Result _utee_cryp_obj_restrict_usage(unsigned long obj,
114 uint32_t *obj);
115 TEE_Result _utee_cryp_obj_close(unsigned long obj);
116 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
117 TEE_Result _utee_cryp_obj_populate(unsigned long obj,
122 TEE_Result _utee_cryp_obj_generate_key(unsigned long obj,
166 unsigned long flags, uint32_t *obj);
176 size_t len, uint32_t *obj);
179 TEE_Result _utee_storage_obj_del(unsigned long obj);
214 TEE_Result _utee_storage_obj_trunc(unsigned long obj, size_t len);
[all …]
/optee_os/out/arm/export-ta_arm64/include/
A Dutee_syscalls.h106 TEE_Result _utee_cryp_obj_restrict_usage(unsigned long obj,
114 uint32_t *obj);
115 TEE_Result _utee_cryp_obj_close(unsigned long obj);
116 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
117 TEE_Result _utee_cryp_obj_populate(unsigned long obj,
122 TEE_Result _utee_cryp_obj_generate_key(unsigned long obj,
166 unsigned long flags, uint32_t *obj);
176 size_t len, uint32_t *obj);
179 TEE_Result _utee_storage_obj_del(unsigned long obj);
214 TEE_Result _utee_storage_obj_trunc(unsigned long obj, size_t len);
[all …]
/optee_os/lib/libutee/include/
A Dutee_syscalls.h106 TEE_Result _utee_cryp_obj_restrict_usage(unsigned long obj,
114 uint32_t *obj);
115 TEE_Result _utee_cryp_obj_close(unsigned long obj);
116 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
117 TEE_Result _utee_cryp_obj_populate(unsigned long obj,
122 TEE_Result _utee_cryp_obj_generate_key(unsigned long obj,
166 unsigned long flags, uint32_t *obj);
176 size_t len, uint32_t *obj);
179 TEE_Result _utee_storage_obj_del(unsigned long obj);
214 TEE_Result _utee_storage_obj_trunc(unsigned long obj, size_t len);
[all …]
/optee_os/out/arm/export-ta_arm32/host_include/
A Dutee_syscalls.h106 TEE_Result _utee_cryp_obj_restrict_usage(unsigned long obj,
114 uint32_t *obj);
115 TEE_Result _utee_cryp_obj_close(unsigned long obj);
116 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
117 TEE_Result _utee_cryp_obj_populate(unsigned long obj,
122 TEE_Result _utee_cryp_obj_generate_key(unsigned long obj,
166 unsigned long flags, uint32_t *obj);
176 size_t len, uint32_t *obj);
179 TEE_Result _utee_storage_obj_del(unsigned long obj);
214 TEE_Result _utee_storage_obj_trunc(unsigned long obj, size_t len);
[all …]
/optee_os/out/arm/export-ta_arm32/include/
A Dutee_syscalls.h106 TEE_Result _utee_cryp_obj_restrict_usage(unsigned long obj,
114 uint32_t *obj);
115 TEE_Result _utee_cryp_obj_close(unsigned long obj);
116 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
117 TEE_Result _utee_cryp_obj_populate(unsigned long obj,
122 TEE_Result _utee_cryp_obj_generate_key(unsigned long obj,
166 unsigned long flags, uint32_t *obj);
176 size_t len, uint32_t *obj);
179 TEE_Result _utee_storage_obj_del(unsigned long obj);
214 TEE_Result _utee_storage_obj_trunc(unsigned long obj, size_t len);
[all …]
/optee_os/lib/libutee/
A Dtee_api_objects.c209 uint32_t obj; in TEE_AllocateTransientObject() local
213 res = _utee_cryp_obj_alloc(objectType, maxKeySize, &obj); in TEE_AllocateTransientObject()
221 *object = (TEE_ObjectHandle)(uintptr_t)obj; in TEE_AllocateTransientObject()
401 uint32_t obj; in TEE_OpenPersistentObject() local
411 &obj); in TEE_OpenPersistentObject()
413 *object = (TEE_ObjectHandle)(uintptr_t)obj; in TEE_OpenPersistentObject()
438 uint32_t obj; in TEE_CreatePersistentObject() local
449 initialDataLen, &obj); in TEE_CreatePersistentObject()
452 *object = (TEE_ObjectHandle)(uintptr_t)obj; in TEE_CreatePersistentObject()
/optee_os/scripts/
A Dts_bin_to_c.py49 def get_name(obj): argument
52 name = obj.name.decode()
54 name = obj.name

Completed in 48 milliseconds

12