/optee_os-3.20.0/ta/pkcs11/src/ |
A D | object.c | 85 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 D | persistent_token.c | 312 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 D | processing_asymm.c | 57 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 D | processing_ec.c | 342 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 D | processing.h | 113 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 D | processing_symm.c | 102 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 D | processing_digest.c | 113 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 D | processing_rsa.c | 60 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 D | pkcs11_helpers.h | 66 struct pkcs11_object *obj, 72 struct pkcs11_object *obj,
|
A D | pkcs11_token.h | 214 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 D | pkcs11_attributes.h | 166 struct pkcs11_object *obj); 185 struct pkcs11_object *obj,
|
A D | object.h | 42 uint32_t pkcs11_object2handle(struct pkcs11_object *obj, 52 void cleanup_persistent_object(struct pkcs11_object *obj,
|
A D | processing.c | 128 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 D | pkcs11_attributes.c | 1866 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 D | tee_pobj.c | 68 *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 D | tee_svc_storage.c | 167 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 D | tee_obj.c | 22 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 D | utils_dmaobj.c | 678 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 D | caam_utils_dmaobj.h | 35 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 D | tee_svc_storage.h | 18 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 D | tee_pobj.h | 37 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 D | tee_svc_cryp.h | 14 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 D | utee_syscalls.h | 105 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 D | ts_bin_to_c.py | 55 def get_name(obj): argument 58 name = obj.name.decode() 60 name = obj.name
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_objects.c | 227 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()
|