Lines Matching refs:proc_params
226 struct pkcs11_attribute_head *proc_params = NULL; in entry_generate_secret() local
242 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_generate_secret()
261 rc = check_mechanism_against_processing(session, proc_params->id, in entry_generate_secret()
265 DMSG("Invalid mechanism %#"PRIx32": %#x", proc_params->id, rc); in entry_generate_secret()
275 proc_params->id, in entry_generate_secret()
287 rc = check_created_attrs_against_processing(proc_params->id, head); in entry_generate_secret()
300 switch (proc_params->id) { in entry_generate_secret()
314 TEE_Free(proc_params); in entry_generate_secret()
315 proc_params = NULL; in entry_generate_secret()
339 TEE_Free(proc_params); in entry_generate_secret()
409 struct pkcs11_attribute_head *proc_params = NULL; in entry_generate_key_pair() local
431 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_generate_key_pair()
452 rc = check_mechanism_against_processing(session, proc_params->id, in entry_generate_key_pair()
463 proc_params->id, in entry_generate_key_pair()
477 proc_params->id, in entry_generate_key_pair()
495 rc = check_created_attrs_against_processing(proc_params->id, pub_head); in entry_generate_key_pair()
499 rc = check_created_attrs_against_processing(proc_params->id, in entry_generate_key_pair()
521 switch (proc_params->id) { in entry_generate_key_pair()
523 rc = generate_eddsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
526 rc = generate_ec_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
529 rc = generate_rsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
538 TEE_Free(proc_params); in entry_generate_key_pair()
539 proc_params = NULL; in entry_generate_key_pair()
584 TEE_Free(proc_params); in entry_generate_key_pair()
609 struct pkcs11_attribute_head *proc_params = NULL; in entry_processing_init() local
628 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_processing_init()
653 rc = check_mechanism_against_processing(session, proc_params->id, in entry_processing_init()
660 rc = check_parent_attrs_against_processing(proc_params->id, in entry_processing_init()
672 if (processing_is_tee_symm(proc_params->id)) in entry_processing_init()
673 rc = init_symm_operation(session, function, proc_params, obj); in entry_processing_init()
674 else if (processing_is_tee_asymm(proc_params->id)) in entry_processing_init()
675 rc = init_asymm_operation(session, function, proc_params, obj); in entry_processing_init()
676 else if (processing_is_tee_digest(proc_params->id)) in entry_processing_init()
677 rc = init_digest_operation(session, proc_params); in entry_processing_init()
683 session->handle, id2str_proc(proc_params->id), in entry_processing_init()
691 TEE_Free(proc_params); in entry_processing_init()
818 struct pkcs11_attribute_head *proc_params = NULL; in entry_processing_key() local
883 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_processing_key()
909 rc = check_mechanism_against_processing(session, proc_params->id, in entry_processing_key()
924 rc = check_parent_attrs_against_processing(proc_params->id, function, in entry_processing_key()
955 proc_params->id, in entry_processing_key()
965 rc = check_created_attrs_against_processing(proc_params->id, head); in entry_processing_key()
977 if (processing_is_tee_symm(proc_params->id)) { in entry_processing_key()
978 rc = init_symm_operation(session, operation, proc_params, in entry_processing_key()
998 } else if (processing_is_tee_asymm(proc_params->id)) { in entry_processing_key()
1002 proc_params, parent); in entry_processing_key()
1006 rc = do_asymm_derivation(session, proc_params, &head); in entry_processing_key()
1012 proc_params, parent); in entry_processing_key()
1038 TEE_Free(proc_params); in entry_processing_key()
1039 proc_params = NULL; in entry_processing_key()
1065 TEE_Free(proc_params); in entry_processing_key()
1128 struct pkcs11_attribute_head *proc_params = NULL; in entry_wrap_key() local
1159 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_wrap_key()
1200 rc = check_mechanism_against_processing(session, proc_params->id, in entry_wrap_key()
1210 rc = check_parent_attrs_against_processing(proc_params->id, function, in entry_wrap_key()
1270 if (processing_is_tee_symm(proc_params->id)) { in entry_wrap_key()
1272 proc_params, wrapping_key); in entry_wrap_key()
1280 proc_params, wrapping_key); in entry_wrap_key()
1295 TEE_Free(proc_params); in entry_wrap_key()