Lines Matching full:function

59 static bool func_matches_state(enum processing_func function,  in func_matches_state()  argument
62 switch (function) { in func_matches_state()
85 TEE_Panic(function); in func_matches_state()
91 enum processing_func function) in get_active_session() argument
96 func_matches_state(function, session->processing->state)) in get_active_session()
328 * be freed at function out. in entry_generate_secret()
595 * @function - encrypt, decrypt, sign, verify, digest, ...
599 enum processing_func function) in entry_processing_init() argument
622 if (function != PKCS11_FUNCTION_DIGEST) { in entry_processing_init()
641 if (function != PKCS11_FUNCTION_DIGEST) { in entry_processing_init()
649 rc = set_processing_state(session, function, obj, NULL); in entry_processing_init()
654 function, in entry_processing_init()
661 function, in entry_processing_init()
673 rc = init_symm_operation(session, function, proc_params, obj); in entry_processing_init()
675 rc = init_asymm_operation(session, function, proc_params, obj); in entry_processing_init()
684 id2str_function(function)); in entry_processing_init()
702 * @function - encrypt, decrypt, sign, verify, digest, ...
707 enum processing_func function, in entry_processing_step() argument
729 assert(function == PKCS11_FUNCTION_DIGEST); in entry_processing_step()
739 rc = get_active_session(session, function); in entry_processing_step()
744 assert(function == PKCS11_FUNCTION_DIGEST); in entry_processing_step()
762 function, step); in entry_processing_step()
767 rc = step_symm_operation(session, function, step, in entry_processing_step()
770 rc = step_asymm_operation(session, function, step, in entry_processing_step()
782 id2str_function(function)); in entry_processing_step()
811 enum processing_func function) in entry_processing_key() argument
838 switch (function) { in entry_processing_key()
908 /* Check if mechanism can be used for derivation function */ in entry_processing_key()
910 function, in entry_processing_key()
916 rc = set_processing_state(session, function, parent, NULL); in entry_processing_key()
924 rc = check_parent_attrs_against_processing(proc_params->id, function, in entry_processing_key()
933 if (function == PKCS11_FUNCTION_UNWRAP) in entry_processing_key()
954 function, in entry_processing_key()
983 switch (function) { in entry_processing_key()
993 TEE_Panic(function); in entry_processing_key()
999 switch (function) { in entry_processing_key()
1001 rc = init_asymm_operation(session, function, in entry_processing_key()
1020 TEE_Panic(function); in entry_processing_key()
1052 * be freed at function out. in entry_processing_key()
1085 enum processing_func function = PKCS11_FUNCTION_UNKNOWN; in entry_release_active_processing() local
1102 function = func_for_cmd(cmd); in entry_release_active_processing()
1103 if (function == PKCS11_FUNCTION_UNKNOWN) in entry_release_active_processing()
1106 rc = get_active_session(session, function); in entry_release_active_processing()
1139 const enum processing_func function = PKCS11_FUNCTION_WRAP; in entry_wrap_key() local
1195 rc = set_processing_state(session, function, wrapping_key, NULL); in entry_wrap_key()
1199 /* Check if mechanism can be used for wrapping function */ in entry_wrap_key()
1201 function, in entry_wrap_key()
1210 rc = check_parent_attrs_against_processing(proc_params->id, function, in entry_wrap_key()