Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/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 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_asymm.c57 struct pkcs11_object *obj) in pkcs2tee_algorithm() argument
161 struct pkcs11_object *obj, in pkcs2tee_key_type() argument
214 struct pkcs11_object *obj) in allocate_tee_operation() argument
268 struct pkcs11_object *obj, in load_tee_key() argument
293 switch (obj->key_type) { in load_tee_key()
318 rc = pkcs2tee_key_type(&obj->key_type, obj, function); in load_tee_key()
335 obj); in load_tee_key()
344 &obj->key_handle); in load_tee_key()
364 obj->key_handle); in load_tee_key()
382 struct pkcs11_object *obj) in init_tee_operation() argument
[all …]
A Dprocessing_ec.c342 struct pkcs11_object *obj) in load_tee_ec_key_attrs() argument
363 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
368 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
388 obj, PKCS11_CKA_VALUE)) in load_tee_ec_key_attrs()
393 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
398 obj, PKCS11_CKA_EC_POINT)) in load_tee_ec_key_attrs()
423 struct pkcs11_object *obj) in pkcs2tee_algo_ecdsa() argument
647 struct pkcs11_object *obj) in load_tee_eddsa_key_attrs() argument
664 obj, PKCS11_CKA_EC_POINT)) in load_tee_eddsa_key_attrs()
680 obj, PKCS11_CKA_VALUE)) in load_tee_eddsa_key_attrs()
[all …]
A Dprocessing.h113 size_t get_object_key_bit_size(struct pkcs11_object *obj);
132 struct pkcs11_object *obj);
185 struct pkcs11_object *obj,
193 struct pkcs11_object *obj);
197 struct pkcs11_object *obj);
205 struct pkcs11_object *obj);
222 struct pkcs11_object *obj);
229 struct pkcs11_object *obj);
268 struct pkcs11_object *obj);
A Dprocessing_symm.c102 struct pkcs11_object *obj) in pkcs2tee_key_type() argument
200 struct pkcs11_object *obj) in allocate_tee_operation() argument
270 struct pkcs11_object *obj, in hash_secret_helper() argument
306 struct pkcs11_object *obj, in load_tee_key() argument
318 if (obj->key_handle != TEE_HANDLE_NULL) { in load_tee_key()
368 obj, in load_tee_key()
382 obj, PKCS11_CKA_VALUE)) { in load_tee_key()
390 &obj->key_handle); in load_tee_key()
404 obj->key_handle); in load_tee_key()
414 obj->key_handle = TEE_HANDLE_NULL; in load_tee_key()
[all …]
A Dprocessing_digest.c113 struct pkcs11_object *obj, in step_digest_operation() argument
163 assert(obj); in step_digest_operation()
168 if (get_class(obj->attributes) != PKCS11_CKO_SECRET_KEY) in step_digest_operation()
171 key_type = get_key_type(obj->attributes); in step_digest_operation()
177 rc = get_attribute_ptr(obj->attributes, PKCS11_CKA_VALUE, in step_digest_operation()
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()
509 struct pkcs11_object *obj) in load_tee_rsa_key_attrs() argument
518 switch (get_class(obj->attributes)) { in load_tee_rsa_key_attrs()
526 obj, PKCS11_CKA_MODULUS)) in load_tee_rsa_key_attrs()
530 TEE_ATTR_RSA_PUBLIC_EXPONENT, obj, in load_tee_rsa_key_attrs()
546 obj, PKCS11_CKA_MODULUS)) in load_tee_rsa_key_attrs()
550 TEE_ATTR_RSA_PUBLIC_EXPONENT, obj, in load_tee_rsa_key_attrs()
581 obj, PKCS11_CKA_EXPONENT_1)) in load_tee_rsa_key_attrs()
585 obj, PKCS11_CKA_EXPONENT_2)) in load_tee_rsa_key_attrs()
[all …]
A Dpkcs11_helpers.h66 struct pkcs11_object *obj,
72 struct pkcs11_object *obj,
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);
A Dpkcs11_attributes.h166 struct pkcs11_object *obj);
185 struct pkcs11_object *obj,
A Dobject.h42 uint32_t pkcs11_object2handle(struct pkcs11_object *obj,
52 void cleanup_persistent_object(struct pkcs11_object *obj,
A Dprocessing.c128 struct obj_attrs *attrs = obj->attributes; in get_object_key_bit_size()
601 struct pkcs11_object *obj = NULL; in entry_processing_init() local
632 obj = pkcs11_handle2object(key_handle, session); in entry_processing_init()
633 if (!obj) { in entry_processing_init()
649 if (obj) { in entry_processing_init()
652 obj->attributes); in entry_processing_init()
657 obj->attributes); in entry_processing_init()
706 struct pkcs11_object *obj = NULL; in entry_processing_step() local
736 obj = pkcs11_handle2object(key_handle, session); in entry_processing_step()
737 if (!obj) { in entry_processing_step()
[all …]
A Dpkcs11_attributes.c1866 struct pkcs11_object *obj) in attribute_is_exportable() argument
1919 struct pkcs11_object *obj) in attr_is_modifiable_secret_key() argument
1931 return get_bool(obj->attributes, attr->id); in attr_is_modifiable_secret_key()
1949 struct pkcs11_object *obj __unused) in attr_is_modifiable_public_key()
1968 struct pkcs11_object *obj) in attr_is_modifiable_private_key() argument
1989 return get_bool(obj->attributes, attr->id); in attr_is_modifiable_private_key()
2004 struct pkcs11_object *obj) in attr_is_modifiable_certificate() argument
2058 struct pkcs11_object *obj, in attribute_is_modifiable() argument
2115 struct pkcs11_object *obj, in check_attrs_against_modification() argument
2123 class = get_class(obj->attributes); in check_attrs_against_modification()
[all …]
/optee_os-3.20.0/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.c167 uint32_t *obj) in syscall_storage_obj_open() argument
230 res = copy_kaddr_to_uref(obj, o); in syscall_storage_obj_open()
311 uint32_t *obj) in syscall_storage_obj_create() argument
399 res = copy_kaddr_to_uref(obj, o); in syscall_storage_obj_create()
425 TEE_Result syscall_storage_obj_del(unsigned long obj) in syscall_storage_obj_del() argument
432 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_del()
470 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_rename()
698 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_read()
755 res = tee_obj_get(utc, uref_to_vaddr(obj), &o); in syscall_storage_obj_write()
803 TEE_Result syscall_storage_obj_trunc(unsigned long obj, size_t len) in syscall_storage_obj_trunc() argument
[all …]
A Dtee_obj.c22 struct tee_obj **obj) in tee_obj_get() argument
28 *obj = o; in tee_obj_get()
/optee_os-3.20.0/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-3.20.0/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-3.20.0/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,
49 TEE_Result syscall_storage_obj_read(unsigned long obj, void *data, size_t len,
52 TEE_Result syscall_storage_obj_write(unsigned long obj, void *data,
55 TEE_Result syscall_storage_obj_trunc(unsigned long obj, size_t len);
57 TEE_Result syscall_storage_obj_seek(unsigned long obj, int32_t offset,
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,
A Dtee_svc_cryp.h14 TEE_Result syscall_cryp_obj_get_info(unsigned long obj,
16 TEE_Result syscall_cryp_obj_restrict_usage(unsigned long obj,
18 TEE_Result syscall_cryp_obj_get_attr(unsigned long obj, unsigned long attr_id,
22 unsigned long max_key_size, uint32_t *obj);
23 TEE_Result syscall_cryp_obj_close(unsigned long obj);
24 TEE_Result syscall_cryp_obj_reset(unsigned long obj);
25 TEE_Result syscall_cryp_obj_populate(unsigned long obj,
29 TEE_Result syscall_obj_generate_key(unsigned long obj, unsigned long key_size,
/optee_os-3.20.0/lib/libutee/include/
A Dutee_syscalls.h105 TEE_Result _utee_cryp_obj_get_info(unsigned long obj,
107 TEE_Result _utee_cryp_obj_restrict_usage(unsigned long obj,
115 uint32_t *obj);
116 TEE_Result _utee_cryp_obj_close(unsigned long obj);
117 TEE_Result _utee_cryp_obj_reset(unsigned long obj);
118 TEE_Result _utee_cryp_obj_populate(unsigned long obj,
123 TEE_Result _utee_cryp_obj_generate_key(unsigned long obj,
167 unsigned long flags, uint32_t *obj);
177 size_t len, uint32_t *obj);
180 TEE_Result _utee_storage_obj_del(unsigned long obj);
[all …]
/optee_os-3.20.0/scripts/
A Dts_bin_to_c.py55 def get_name(obj): argument
58 name = obj.name.decode()
60 name = obj.name
/optee_os-3.20.0/lib/libutee/
A Dtee_api_objects.c227 uint32_t obj; in TEE_AllocateTransientObject() local
231 res = _utee_cryp_obj_alloc(objectType, maxKeySize, &obj); in TEE_AllocateTransientObject()
239 *object = (TEE_ObjectHandle)(uintptr_t)obj; in TEE_AllocateTransientObject()
419 uint32_t obj; in TEE_OpenPersistentObject() local
424 &obj); in TEE_OpenPersistentObject()
426 *object = (TEE_ObjectHandle)(uintptr_t)obj; in TEE_OpenPersistentObject()
450 uint32_t obj; in TEE_CreatePersistentObject() local
456 initialDataLen, &obj); in TEE_CreatePersistentObject()
459 *object = (TEE_ObjectHandle)(uintptr_t)obj; in TEE_CreatePersistentObject()

Completed in 39 milliseconds

12