Lines Matching refs:proc_params

210 	struct pkcs11_attribute_head *proc_params = NULL;  in entry_generate_secret()  local
226 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_generate_secret()
245 rc = check_mechanism_against_processing(session, proc_params->id, in entry_generate_secret()
249 DMSG("Invalid mechanism %#"PRIx32": %#x", proc_params->id, rc); in entry_generate_secret()
259 proc_params->id, in entry_generate_secret()
271 rc = check_created_attrs_against_processing(proc_params->id, head); in entry_generate_secret()
284 switch (proc_params->id) { in entry_generate_secret()
298 TEE_Free(proc_params); in entry_generate_secret()
299 proc_params = NULL; in entry_generate_secret()
323 TEE_Free(proc_params); in entry_generate_secret()
393 struct pkcs11_attribute_head *proc_params = NULL; in entry_generate_key_pair() local
415 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_generate_key_pair()
436 rc = check_mechanism_against_processing(session, proc_params->id, in entry_generate_key_pair()
447 proc_params->id, in entry_generate_key_pair()
461 proc_params->id, in entry_generate_key_pair()
479 rc = check_created_attrs_against_processing(proc_params->id, pub_head); in entry_generate_key_pair()
483 rc = check_created_attrs_against_processing(proc_params->id, in entry_generate_key_pair()
505 switch (proc_params->id) { in entry_generate_key_pair()
507 rc = generate_ec_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
510 rc = generate_rsa_keys(proc_params, &pub_head, &priv_head); in entry_generate_key_pair()
519 TEE_Free(proc_params); in entry_generate_key_pair()
520 proc_params = NULL; in entry_generate_key_pair()
566 TEE_Free(proc_params); in entry_generate_key_pair()
591 struct pkcs11_attribute_head *proc_params = NULL; in entry_processing_init() local
610 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_processing_init()
635 rc = check_mechanism_against_processing(session, proc_params->id, in entry_processing_init()
642 rc = check_parent_attrs_against_processing(proc_params->id, in entry_processing_init()
654 if (processing_is_tee_symm(proc_params->id)) in entry_processing_init()
655 rc = init_symm_operation(session, function, proc_params, obj); in entry_processing_init()
656 else if (processing_is_tee_asymm(proc_params->id)) in entry_processing_init()
657 rc = init_asymm_operation(session, function, proc_params, obj); in entry_processing_init()
658 else if (processing_is_tee_digest(proc_params->id)) in entry_processing_init()
659 rc = init_digest_operation(session, proc_params); in entry_processing_init()
664 session->processing->mecha_type = proc_params->id; in entry_processing_init()
666 session->handle, id2str_proc(proc_params->id), in entry_processing_init()
674 TEE_Free(proc_params); in entry_processing_init()
801 struct pkcs11_attribute_head *proc_params = NULL; in entry_processing_key() local
866 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_processing_key()
892 rc = check_mechanism_against_processing(session, proc_params->id, in entry_processing_key()
907 rc = check_parent_attrs_against_processing(proc_params->id, function, in entry_processing_key()
938 proc_params->id, in entry_processing_key()
948 rc = check_created_attrs_against_processing(proc_params->id, head); in entry_processing_key()
960 if (processing_is_tee_symm(proc_params->id)) { in entry_processing_key()
961 rc = init_symm_operation(session, operation, proc_params, in entry_processing_key()
966 session->processing->mecha_type = proc_params->id; in entry_processing_key()
994 TEE_Free(proc_params); in entry_processing_key()
995 proc_params = NULL; in entry_processing_key()
1021 TEE_Free(proc_params); in entry_processing_key()
1084 struct pkcs11_attribute_head *proc_params = NULL; in entry_wrap_key() local
1115 rc = serialargs_alloc_get_one_attribute(&ctrlargs, &proc_params); in entry_wrap_key()
1156 rc = check_mechanism_against_processing(session, proc_params->id, in entry_wrap_key()
1166 rc = check_parent_attrs_against_processing(proc_params->id, function, in entry_wrap_key()
1227 if (processing_is_tee_symm(proc_params->id)) { in entry_wrap_key()
1229 proc_params, wrapping_key); in entry_wrap_key()
1233 session->processing->mecha_type = proc_params->id; in entry_wrap_key()
1247 TEE_Free(proc_params); in entry_wrap_key()