Home
last modified time | relevance | path

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

/optee_os/ta/pkcs11/src/
A Dprocessing.h52 enum pkcs11_rc entry_generate_secret(struct pkcs11_client *client,
58 enum pkcs11_rc entry_processing_init(struct pkcs11_client *client,
67 enum pkcs11_rc entry_processing_key(struct pkcs11_client *client,
75 enum pkcs11_rc entry_wrap_key(struct pkcs11_client *client,
89 enum pkcs11_rc tee2pkcs_add_attribute(struct obj_attrs **head,
139 enum pkcs11_rc
151 enum pkcs11_rc load_tee_ec_key_attrs(TEE_Attribute **tee_attrs,
159 enum pkcs11_rc pkcs2tee_algo_ecdsa(uint32_t *tee_id,
176 enum pkcs11_rc
183 enum pkcs11_rc pkcs2tee_algo_rsa_pss(uint32_t *tee_id,
[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,
191 enum pkcs11_rc get_key_data_to_wrap(struct obj_attrs *head, void **data,
[all …]
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 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 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.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 Dpkcs11_attributes.c57 enum pkcs11_rc
197 enum pkcs11_rc rc = PKCS11_CKR_OK; in pkcs11_import_object_boolprop()
222 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_mandatory_boolprops()
239 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_mandatory_attributes()
275 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_optional_attributes_with_def()
477 enum pkcs11_rc rc = PKCS11_CKR_OK; in create_storage_attributes()
507 enum pkcs11_rc rc = PKCS11_CKR_OK; in create_genkey_attributes()
541 enum pkcs11_rc rc = PKCS11_CKR_OK; in create_symm_key_attributes()
846 static enum pkcs11_rc
914 enum pkcs11_rc
[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 Dprocessing_symm.c60 static enum pkcs11_rc
198 static enum pkcs11_rc
280 enum pkcs11_rc rc = PKCS11_CKR_OK; in hash_secret_helper()
315 enum pkcs11_rc rc = PKCS11_CKR_OK; in load_tee_key()
421 static enum pkcs11_rc
426 enum pkcs11_rc rc = PKCS11_CKR_OK; in tee_init_derive_symm()
492 static enum pkcs11_rc
530 static enum pkcs11_rc
534 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in init_tee_operation()
618 enum pkcs11_rc rc = PKCS11_CKR_OK; in init_symm_operation()
[all …]
A Dprocessing_rsa.c17 enum pkcs11_rc
22 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_proc_params_rsa_pss()
117 enum pkcs11_rc pkcs2tee_algo_rsa_pss(uint32_t *tee_id, in pkcs2tee_algo_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()
260 enum pkcs11_rc
265 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_algo_rsa_oaep()
356 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_rsa_key_attrs()
459 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in tee2pkcs_rsa_attributes()
[all …]
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 Dprocessing.c93 enum pkcs11_rc rc = PKCS11_CKR_OPERATION_NOT_INITIALIZED; in get_active_session()
162 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in generate_random_key_value()
207 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_generate_secret()
362 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in tee2pkcs_add_attribute()
390 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_generate_key_pair()
588 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_processing_init()
694 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_processing_step()
798 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in entry_processing_key()
1038 enum pkcs11_rc rc = PKCS11_CKR_OK; in entry_release_active_processing()
1073 enum pkcs11_rc entry_wrap_key(struct pkcs11_client *client, in entry_wrap_key()
[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()
105 enum pkcs11_rc step_digest_operation(struct pkcs11_session *session, in step_digest_operation()
110 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in step_digest_operation()
A Dprocessing_asymm.c49 static enum pkcs11_rc
95 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in pkcs2tee_algorithm()
146 static enum pkcs11_rc pkcs2tee_key_type(uint32_t *tee_type, in pkcs2tee_key_type()
185 static enum pkcs11_rc
242 static enum pkcs11_rc load_tee_key(struct pkcs11_session *session, in load_tee_key()
249 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_key()
345 static enum pkcs11_rc
350 enum pkcs11_rc rc = PKCS11_CKR_OK; in init_tee_operation()
376 enum pkcs11_rc init_asymm_operation(struct pkcs11_session *session, in init_asymm_operation()
381 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in init_asymm_operation()
[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_ec.c322 enum pkcs11_rc load_tee_ec_key_attrs(TEE_Attribute **tee_attrs, in load_tee_ec_key_attrs()
328 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in load_tee_ec_key_attrs()
403 enum pkcs11_rc pkcs2tee_algo_ecdsa(uint32_t *tee_id, in pkcs2tee_algo_ecdsa()
447 static enum pkcs11_rc tee2pkcs_ec_attributes(struct obj_attrs **pub_head, in tee2pkcs_ec_attributes()
462 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in tee2pkcs_ec_attributes()
554 enum pkcs11_rc generate_ec_keys(struct pkcs11_attribute_head *proc_params, in generate_ec_keys()
558 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in generate_ec_keys()
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_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.c373 enum pkcs11_rc tee2pkcs_error(TEE_Result res) in tee2pkcs_error()
648 enum pkcs11_rc pkcs2tee_load_hashed_attr(TEE_Attribute *tee_ref, in pkcs2tee_load_hashed_attr()
658 enum pkcs11_rc rc = PKCS11_CKR_OK; in pkcs2tee_load_hashed_attr()
/optee_os/ta/pkcs11/include/
A Dpkcs11_ta.h722 enum pkcs11_rc { enum

Completed in 37 milliseconds