Home
last modified time | relevance | path

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

/optee_os-3.20.0/ta/pkcs11/src/
A Dprocessing.h107 enum pkcs11_rc entry_wrap_key(struct pkcs11_client *client,
121 enum pkcs11_rc tee2pkcs_add_attribute(struct obj_attrs **head,
179 enum pkcs11_rc
203 enum pkcs11_rc pkcs2tee_algo_ecdsa(uint32_t *tee_id,
224 enum pkcs11_rc
231 enum pkcs11_rc pkcs2tee_algo_rsa_pss(uint32_t *tee_id,
234 enum pkcs11_rc
238 enum pkcs11_rc
242 enum pkcs11_rc
249 enum pkcs11_rc
[all …]
A Dpkcs11_token.h231 enum pkcs11_rc verify_identity_auth(struct ck_token *token,
234 static inline enum pkcs11_rc
240 static inline enum pkcs11_rc
249 static inline enum pkcs11_rc
258 enum pkcs11_rc create_object_uuid(struct ck_token *token,
263 enum pkcs11_rc register_persistent_object(struct ck_token *token,
340 enum pkcs11_rc entry_ck_init_pin(struct pkcs11_client *client,
342 enum pkcs11_rc entry_ck_set_pin(struct pkcs11_client *client,
344 enum pkcs11_rc entry_ck_login(struct pkcs11_client *client,
346 enum pkcs11_rc entry_ck_logout(struct pkcs11_client *client,
[all …]
A Dpkcs11_attributes.h121 enum pkcs11_rc
134 enum pkcs11_rc check_created_attrs_against_token(struct pkcs11_session *session,
137 enum pkcs11_rc check_created_attrs_against_processing(uint32_t proc_id,
140 enum pkcs11_rc check_created_attrs(struct obj_attrs *key1,
151 enum pkcs11_rc
156 enum pkcs11_rc check_access_attrs_against_token(struct pkcs11_session *session,
159 enum pkcs11_rc
183 enum pkcs11_rc check_attrs_against_modification(struct pkcs11_session *session,
188 enum pkcs11_rc set_key_data(struct obj_attrs **head, void *data,
198 enum pkcs11_rc alloc_key_data_to_wrap(struct obj_attrs *head, void **data,
[all …]
A Dserializer.h44 enum pkcs11_rc serialargs_get(struct serialargs *args, void *out, size_t sz);
53 static inline enum pkcs11_rc serialargs_get_u32(struct serialargs *args, in serialargs_get_u32()
67 enum pkcs11_rc serialargs_get_ptr(struct serialargs *args, void **out,
78 enum pkcs11_rc
90 enum pkcs11_rc serialargs_alloc_get_attributes(struct serialargs *args,
102 enum pkcs11_rc serialargs_alloc_and_get(struct serialargs *args,
123 enum pkcs11_rc serialargs_get_session_from_handle(struct serialargs *args,
138 enum pkcs11_rc serialize(char **bstart, size_t *blen, void *data, size_t len);
A Dobject.h49 enum pkcs11_rc create_object(void *session, struct obj_attrs *attributes,
61 enum pkcs11_rc entry_create_object(struct pkcs11_client *client,
64 enum pkcs11_rc entry_destroy_object(struct pkcs11_client *client,
67 enum pkcs11_rc entry_find_objects_init(struct pkcs11_client *client,
70 enum pkcs11_rc entry_find_objects(struct pkcs11_client *client,
73 enum pkcs11_rc entry_find_objects_final(struct pkcs11_client *client,
76 enum pkcs11_rc entry_get_attribute_value(struct pkcs11_client *client,
79 enum pkcs11_rc entry_get_object_size(struct pkcs11_client *client,
82 enum pkcs11_rc entry_set_attribute_value(struct pkcs11_client *client,
85 enum pkcs11_rc entry_copy_object(struct pkcs11_client *client, uint32_t ptypes,
A Dattributes.h72 enum pkcs11_rc init_attributes_head(struct obj_attrs **head);
85 enum pkcs11_rc add_attribute(struct obj_attrs **head, uint32_t attribute,
94 enum pkcs11_rc remove_empty_attribute(struct obj_attrs **head, uint32_t attrib);
133 enum pkcs11_rc get_attribute_ptr(struct obj_attrs *head, uint32_t attribute,
158 enum pkcs11_rc get_attribute(struct obj_attrs *head, uint32_t attribute,
171 enum pkcs11_rc set_attribute(struct obj_attrs **head, uint32_t attribute,
185 enum pkcs11_rc modify_attributes_list(struct obj_attrs **dst,
202 static inline enum pkcs11_rc get_u32_attribute(struct obj_attrs *head, in get_u32_attribute()
207 enum pkcs11_rc rc = get_attribute(head, attribute, attr, &size); in get_u32_attribute()
227 enum pkcs11_rc attributes_match_add_reference(struct obj_attrs **head,
A Dserializer.c27 enum pkcs11_rc serialargs_get(struct serialargs *args, void *out, size_t size) in serialargs_get()
29 enum pkcs11_rc rc = PKCS11_CKR_OK; in serialargs_get()
39 static enum pkcs11_rc alloc_and_get(struct serialargs *args, char *orig_next, in alloc_and_get()
43 enum pkcs11_rc rc = PKCS11_CKR_OK; in alloc_and_get()
74 enum pkcs11_rc serialargs_alloc_and_get(struct serialargs *args, in serialargs_alloc_and_get()
80 enum pkcs11_rc serialargs_get_ptr(struct serialargs *args, void **out, in serialargs_get_ptr()
106 enum pkcs11_rc
111 enum pkcs11_rc rc = PKCS11_CKR_OK; in serialargs_alloc_get_one_attribute()
128 enum pkcs11_rc serialargs_alloc_get_attributes(struct serialargs *args, in serialargs_alloc_get_attributes()
132 enum pkcs11_rc rc = PKCS11_CKR_OK; in serialargs_alloc_get_attributes()
[all …]
A Dattributes.c22 enum pkcs11_rc init_attributes_head(struct obj_attrs **head) in init_attributes_head()
31 enum pkcs11_rc add_attribute(struct obj_attrs **head, uint32_t attribute, in add_attribute()
36 enum pkcs11_rc rc = PKCS11_CKR_OK; in add_attribute()
61 static enum pkcs11_rc _remove_attribute(struct obj_attrs **head, in _remove_attribute()
98 enum pkcs11_rc remove_empty_attribute(struct obj_attrs **head, in remove_empty_attribute()
172 enum pkcs11_rc rc = PKCS11_CKR_OK; in get_attribute()
198 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_attribute()
207 enum pkcs11_rc modify_attributes_list(struct obj_attrs **dst, in modify_attributes_list()
213 enum pkcs11_rc rc = PKCS11_CKR_OK; in modify_attributes_list()
235 enum pkcs11_rc rc = PKCS11_CKR_OK; in get_bool()
[all …]
A Dpkcs11_attributes.c58 enum pkcs11_rc
198 enum pkcs11_rc rc = PKCS11_CKR_OK; in pkcs11_import_object_boolprop()
223 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_mandatory_boolprops()
240 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_mandatory_attributes()
276 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_optional_attributes_with_def()
484 enum pkcs11_rc rc = PKCS11_CKR_OK; in create_storage_attributes()
514 enum pkcs11_rc rc = PKCS11_CKR_OK; in create_genkey_attributes()
860 static enum pkcs11_rc
928 enum pkcs11_rc
1674 enum pkcs11_rc
[all …]
A Dprocessing_digest.c39 static enum pkcs11_rc
65 static enum pkcs11_rc
88 enum pkcs11_rc init_digest_operation(struct pkcs11_session *session, in init_digest_operation()
91 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in init_digest_operation()
111 enum pkcs11_rc step_digest_operation(struct pkcs11_session *session, in step_digest_operation()
116 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in step_digest_operation()
A Dprocessing_ec.c346 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_ec_key_attrs()
421 enum pkcs11_rc pkcs2tee_algo_ecdsa(uint32_t *tee_id, in pkcs2tee_algo_ecdsa()
480 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in tee2pkcs_ec_attributes()
576 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in generate_ec_keys()
651 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_eddsa_key_attrs()
712 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in generate_eddsa_keys()
786 enum pkcs11_rc
790 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_proc_params_eddsa()
853 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_param_ecdh()
906 enum pkcs11_rc pkcs2tee_algo_ecdh(uint32_t *tee_id, in pkcs2tee_algo_ecdh()
[all …]
A Dprocessing_rsa.c17 enum pkcs11_rc
22 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_proc_params_rsa_pss()
121 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_algo_rsa_pss()
199 enum pkcs11_rc
204 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_proc_params_rsa_oaep()
254 enum pkcs11_rc
259 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_proc_params_rsa_aes_wrap()
322 enum pkcs11_rc
327 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_algo_rsa_oaep()
412 enum pkcs11_rc
[all …]
A Dprocessing_symm.c59 static enum pkcs11_rc
196 static enum pkcs11_rc
278 enum pkcs11_rc rc = PKCS11_CKR_OK; in hash_secret_helper()
313 enum pkcs11_rc rc = PKCS11_CKR_OK; in load_tee_key()
419 static enum pkcs11_rc
424 enum pkcs11_rc rc = PKCS11_CKR_OK; in tee_init_derive_symm()
490 static enum pkcs11_rc
528 static enum pkcs11_rc
532 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in init_tee_operation()
615 enum pkcs11_rc rc = PKCS11_CKR_OK; in init_symm_operation()
[all …]
A Dprocessing_asymm.c53 static enum pkcs11_rc
102 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_algorithm()
210 static enum pkcs11_rc
274 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_key()
379 static enum pkcs11_rc
384 enum pkcs11_rc rc = PKCS11_CKR_OK; in init_tee_operation()
421 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in init_asymm_operation()
454 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in step_asymm_operation()
871 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in do_asymm_derivation()
945 enum pkcs11_rc rc = PKCS11_CKR_OK; in wrap_rsa_aes_key()
[all …]
A Dprocessing_aes.c17 enum pkcs11_rc tee_init_ctr_operation(struct active_processing *processing, in tee_init_ctr_operation()
21 enum pkcs11_rc rc = PKCS11_CKR_OK; in tee_init_ctr_operation()
A Dpkcs11_token.c305 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_slot_info()
354 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_token_info()
435 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_token_mecha_ids()
491 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_token_mecha_info()
595 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_open_session()
704 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_close_session()
733 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_close_all_sessions()
774 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_session_info()
814 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_ck_token_initialize()
968 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_pin()
[all …]
A Dpersistent_token.c74 static enum pkcs11_rc do_hash(uint32_t user, const uint8_t *pin, in do_hash()
98 enum pkcs11_rc hash_pin(enum pkcs11_user_type user, const uint8_t *pin, in hash_pin()
102 enum pkcs11_rc rc = PKCS11_CKR_OK; in hash_pin()
120 enum pkcs11_rc rc = PKCS11_CKR_OK; in verify_pin()
153 enum pkcs11_rc setup_identity_auth_from_pin(struct ck_token *token, in setup_identity_auth_from_pin()
254 enum pkcs11_rc verify_identity_auth(struct ck_token *token, in verify_identity_auth()
309 enum pkcs11_rc create_object_uuid(struct ck_token *token, in create_object_uuid()
337 enum pkcs11_rc get_persistent_objects_list(struct ck_token *token, in get_persistent_objects_list()
353 enum pkcs11_rc unregister_persistent_object(struct ck_token *token, in unregister_persistent_object()
415 enum pkcs11_rc register_persistent_object(struct ck_token *token, in register_persistent_object()
[all …]
A Dobject.c206 enum pkcs11_rc create_object(void *sess, struct obj_attrs *head, in create_object()
209 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in create_object()
305 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_create_object()
408 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_destroy_object()
496 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_find_objects_init()
661 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_find_objects()
716 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_find_objects_final()
749 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_get_attribute_value()
919 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_get_object_size()
968 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_set_attribute_value()
[all …]
A Dsanitize_object.c50 static enum pkcs11_rc read_attr_advance(void *buf, size_t blen, size_t *pos, in read_attr_advance()
72 static enum pkcs11_rc sanitize_class_and_type(struct obj_attrs **dst, void *src, in sanitize_class_and_type()
81 enum pkcs11_rc rc = PKCS11_CKR_OK; in sanitize_class_and_type()
168 static enum pkcs11_rc sanitize_boolprops(struct obj_attrs **dst, void *src, in sanitize_boolprops()
175 enum pkcs11_rc rc = PKCS11_CKR_OK; in sanitize_boolprops()
231 enum pkcs11_rc rc = PKCS11_CKR_OK; in sanitize_indirect_attr()
249 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *src, in sanitize_client_object()
255 enum pkcs11_rc rc = PKCS11_CKR_OK; in sanitize_client_object()
A Dprocessing.c93 enum pkcs11_rc rc = PKCS11_CKR_OPERATION_NOT_INITIALIZED; in get_active_session()
168 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in generate_random_key_value()
213 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_generate_secret()
368 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in tee2pkcs_add_attribute()
396 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_generate_key_pair()
596 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_processing_init()
701 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_processing_step()
805 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_processing_key()
1072 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_release_active_processing()
1107 enum pkcs11_rc entry_wrap_key(struct pkcs11_client *client, in entry_wrap_key()
[all …]
A Dpkcs11_helpers.h26 enum pkcs11_rc tee2pkcs_error(TEE_Result res);
70 enum pkcs11_rc pkcs2tee_load_hashed_attr(TEE_Attribute *tee_ref,
A Dsanitize_object.h39 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *head,
A Dentry.c54 static enum pkcs11_rc entry_ping(uint32_t ptypes, TEE_Param *params) in entry_ping()
121 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in TA_InvokeCommandEntryPoint()
A Dpkcs11_helpers.c375 enum pkcs11_rc tee2pkcs_error(TEE_Result res) in tee2pkcs_error()
651 enum pkcs11_rc pkcs2tee_load_hashed_attr(TEE_Attribute *tee_ref, in pkcs2tee_load_hashed_attr()
661 enum pkcs11_rc rc = PKCS11_CKR_OK; in pkcs2tee_load_hashed_attr()
/optee_os-3.20.0/ta/pkcs11/include/
A Dpkcs11_ta.h722 enum pkcs11_rc { enum

Completed in 54 milliseconds