Lines Matching refs:session

199 allocate_tee_operation(struct pkcs11_session *session,  in allocate_tee_operation()  argument
212 assert(session->processing->tee_op_handle == TEE_HANDLE_NULL); in allocate_tee_operation()
259 res = TEE_AllocateOperation(&session->processing->tee_op_handle, in allocate_tee_operation()
307 static enum pkcs11_rc load_tee_key(struct pkcs11_session *session, in load_tee_key() argument
363 &session->processing->extra_ctx, in load_tee_key()
405 res = TEE_SetOperationKey(session->processing->tee_op_handle, in load_tee_key()
531 init_tee_operation(struct pkcs11_session *session, in init_tee_operation() argument
548 TEE_MACInit(session->processing->tee_op_handle, NULL, 0); in init_tee_operation()
574 session->processing->extra_ctx = (void *)pkcs11_data; in init_tee_operation()
576 TEE_MACInit(session->processing->tee_op_handle, NULL, 0); in init_tee_operation()
583 TEE_CipherInit(session->processing->tee_op_handle, NULL, 0); in init_tee_operation()
592 TEE_CipherInit(session->processing->tee_op_handle, in init_tee_operation()
597 rc = tee_init_ctr_operation(session->processing, in init_tee_operation()
603 rc = tee_init_derive_symm(session->processing, proc_params); in init_tee_operation()
613 enum pkcs11_rc init_symm_operation(struct pkcs11_session *session, in init_symm_operation() argument
622 rc = allocate_tee_operation(session, function, proc_params, obj); in init_symm_operation()
626 rc = load_tee_key(session, obj, proc_params); in init_symm_operation()
630 return init_tee_operation(session, proc_params); in init_symm_operation()
715 enum pkcs11_rc step_symm_operation(struct pkcs11_session *session, in step_symm_operation() argument
729 struct active_processing *proc = session->processing; in step_symm_operation()
849 switch (session->processing->mecha_type) { in step_symm_operation()
888 assert(session->processing->extra_ctx); in step_symm_operation()
889 hmac_len = *(uint32_t *)session->processing->extra_ctx; in step_symm_operation()
994 enum pkcs11_rc derive_key_by_symm_enc(struct pkcs11_session *session, in derive_key_by_symm_enc() argument
999 struct active_processing *proc = session->processing; in derive_key_by_symm_enc()
1036 enum pkcs11_rc wrap_data_by_symm_enc(struct pkcs11_session *session, in wrap_data_by_symm_enc() argument
1041 struct active_processing *proc = session->processing; in wrap_data_by_symm_enc()
1107 enum pkcs11_rc unwrap_key_by_symm(struct pkcs11_session *session, void *data, in unwrap_key_by_symm() argument
1112 struct active_processing *proc = session->processing; in unwrap_key_by_symm()