Home
last modified time | relevance | path

Searched refs:tee_obj (Results 1 – 15 of 15) sorted by relevance

/optee_os/core/include/tee/
H A Dtee_obj.h16 struct tee_obj { struct
17 TAILQ_ENTRY(tee_obj) link;
27 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o); argument
30 struct tee_obj **obj);
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);
38 struct tee_obj *tee_obj_alloc(void);
39 void tee_obj_free(struct tee_obj *o);
H A Dtee_svc_cryp.h85 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 Dtee_svc_storage.h63 TEE_Result tee_svc_storage_write_usage(struct tee_obj *o, uint32_t usage);
/optee_os/core/tee/
H A Dtee_obj.c15 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_add()
21 struct tee_obj **obj) in tee_obj_get()
23 struct tee_obj *o; in tee_obj_get()
34 void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_close()
54 TEE_Result tee_obj_verify(struct tee_ta_session *sess, struct tee_obj *o) in tee_obj_verify()
74 struct tee_obj *tee_obj_alloc(void) in tee_obj_alloc()
76 return calloc(1, sizeof(struct tee_obj)); in tee_obj_alloc()
79 void tee_obj_free(struct tee_obj *o) in tee_obj_free()
H A Dtee_svc_storage.c76 static void remove_corrupt_obj(struct user_ta_ctx *utc, struct tee_obj *o) in remove_corrupt_obj()
83 static TEE_Result tee_svc_storage_read_head(struct tee_obj *o) in tee_svc_storage_read_head()
177 struct tee_obj *o = NULL; in syscall_storage_obj_open()
247 static TEE_Result tee_svc_storage_init_file(struct tee_obj *o, bool overwrite, in tee_svc_storage_init_file()
248 struct tee_obj *attr_o, in tee_svc_storage_init_file()
324 struct tee_obj *attr_o = NULL; in syscall_storage_obj_create()
327 struct tee_obj *o = NULL; in syscall_storage_obj_create()
450 struct tee_obj *o = NULL; in syscall_storage_obj_del()
483 struct tee_obj *o = NULL; in syscall_storage_obj_rename()
631 struct tee_obj *o = NULL; in syscall_storage_next_enum()
[all …]
H A Dtee_svc_cryp.c1179 struct tee_obj *o = NULL; in syscall_cryp_obj_get_info()
1210 struct tee_obj *o = NULL; in syscall_cryp_obj_restrict_usage()
1259 static void set_attribute(struct tee_obj *o, in set_attribute()
1271 static uint32_t get_attribute(const struct tee_obj *o, in get_attribute()
1287 struct tee_obj *o = NULL; in syscall_cryp_obj_get_attr()
1330 void tee_obj_attr_free(struct tee_obj *o) in tee_obj_attr_free()
1348 void tee_obj_attr_clear(struct tee_obj *o) in tee_obj_attr_clear()
1367 TEE_Result tee_obj_attr_to_binary(struct tee_obj *o, void *data, in tee_obj_attr_to_binary()
1401 TEE_Result tee_obj_attr_from_binary(struct tee_obj *o, const void *data, in tee_obj_attr_from_binary()
1427 TEE_Result tee_obj_attr_copy_from(struct tee_obj *o, const struct tee_obj *src) in tee_obj_attr_copy_from()
[all …]
H A Dsub.mk29 srcs-y += tee_obj.c
/optee_os/ta/pkcs11/src/
H A Dprocessing_ec.c482 TEE_ObjectHandle tee_obj, in tee2pkcs_ec_attributes() argument
498 tee_obj, TEE_ATTR_ECC_PRIVATE_VALUE); in tee2pkcs_ec_attributes()
502 rc = alloc_get_tee_attribute_data(tee_obj, TEE_ATTR_ECC_PUBLIC_VALUE_X, in tee2pkcs_ec_attributes()
507 rc = alloc_get_tee_attribute_data(tee_obj, TEE_ATTR_ECC_PUBLIC_VALUE_Y, in tee2pkcs_ec_attributes()
598 TEE_ObjectHandle tee_obj = TEE_HANDLE_NULL; in generate_ec_keys() local
630 &tee_obj); in generate_ec_keys()
636 res = TEE_RestrictObjectUsage1(tee_obj, TEE_USAGE_EXTRACTABLE); in generate_ec_keys()
642 res = TEE_GenerateKey(tee_obj, tee_size, tee_key_attr, 1); in generate_ec_keys()
653 rc = tee2pkcs_ec_attributes(pub_head, priv_head, tee_obj, tee_size); in generate_ec_keys()
656 if (tee_obj != TEE_HANDLE_NULL) in generate_ec_keys()
[all …]
H A Dprocessing_rsa.c645 TEE_ObjectHandle tee_obj) in tee2pkcs_rsa_attributes() argument
650 rc = tee2pkcs_add_attribute(pub_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes()
671 tee_obj, in tee2pkcs_rsa_attributes()
677 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_MODULUS, tee_obj, in tee2pkcs_rsa_attributes()
683 tee_obj, TEE_ATTR_RSA_PUBLIC_EXPONENT); in tee2pkcs_rsa_attributes()
688 tee_obj, TEE_ATTR_RSA_PRIVATE_EXPONENT); in tee2pkcs_rsa_attributes()
692 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_PRIME_1, tee_obj, in tee2pkcs_rsa_attributes()
697 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_PRIME_2, tee_obj, in tee2pkcs_rsa_attributes()
702 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_EXPONENT_1, tee_obj, in tee2pkcs_rsa_attributes()
707 rc = tee2pkcs_add_attribute(priv_head, PKCS11_CKA_EXPONENT_2, tee_obj, in tee2pkcs_rsa_attributes()
[all …]
H A Dprocessing.h117 enum pkcs11_rc alloc_get_tee_attribute_data(TEE_ObjectHandle tee_obj,
123 TEE_ObjectHandle tee_obj,
H A Dprocessing.c346 enum pkcs11_rc alloc_get_tee_attribute_data(TEE_ObjectHandle tee_obj, in alloc_get_tee_attribute_data() argument
354 res = TEE_GetObjectBufferAttribute(tee_obj, attribute, NULL, &sz); in alloc_get_tee_attribute_data()
362 res = TEE_GetObjectBufferAttribute(tee_obj, attribute, ptr, &sz); in alloc_get_tee_attribute_data()
375 TEE_ObjectHandle tee_obj, in tee2pkcs_add_attribute() argument
382 rc = alloc_get_tee_attribute_data(tee_obj, tee_id, &a_ptr, &a_size); in tee2pkcs_add_attribute()
/optee_os/core/include/kernel/
H A Duser_ta.h21 TAILQ_HEAD(tee_obj_head, tee_obj);
/optee_os/core/drivers/crypto/se050/core/
H A Dstorage.c16 TEE_Result crypto_storage_obj_del(struct tee_obj *o) in crypto_storage_obj_del()
/optee_os/core/include/crypto/
H A Dcrypto.h86 TEE_Result crypto_storage_obj_del(struct tee_obj *obj);
/optee_os/core/crypto/
H A Dcrypto.c954 __weak TEE_Result crypto_storage_obj_del(struct tee_obj *obj __unused) in crypto_storage_obj_del()