Lines Matching refs:template

150 	CK_ATTRIBUTE template;  in soft_ec_genkey_pair()  local
166 template.type = CKA_EC_PARAMS; in soft_ec_genkey_pair()
167 template.pValue = param_buffer; in soft_ec_genkey_pair()
168 template.ulValueLen = sizeof (param_buffer); in soft_ec_genkey_pair()
169 rv = soft_get_public_key_attribute(pubkey, &template); in soft_ec_genkey_pair()
173 paramlen = template.ulValueLen; in soft_ec_genkey_pair()
176 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template); in soft_ec_genkey_pair()
217 CK_ATTRIBUTE template; in soft_ec_key_derive() local
234 template.type = CKA_VALUE; in soft_ec_key_derive()
235 template.pValue = value; in soft_ec_key_derive()
236 template.ulValueLen = value_len; in soft_ec_key_derive()
237 rv = soft_get_private_key_attribute(basekey, &template); in soft_ec_key_derive()
241 value_len = template.ulValueLen; in soft_ec_key_derive()
245 template.type = CKA_EC_PARAMS; in soft_ec_key_derive()
246 template.pValue = params; in soft_ec_key_derive()
247 template.ulValueLen = params_len; in soft_ec_key_derive()
248 rv = soft_get_private_key_attribute(basekey, &template); in soft_ec_key_derive()
252 params_len = template.ulValueLen; in soft_ec_key_derive()
335 CK_ATTRIBUTE template; in soft_ecc_sign_verify_init_common() local
374 template.type = CKA_EC_PARAMS; in soft_ecc_sign_verify_init_common()
375 template.pValue = params; in soft_ecc_sign_verify_init_common()
376 template.ulValueLen = sizeof (params); in soft_ecc_sign_verify_init_common()
377 rv = soft_get_private_key_attribute(key_p, &template); in soft_ecc_sign_verify_init_common()
385 params[1] != template.ulValueLen - 2) { in soft_ecc_sign_verify_init_common()
390 params_item.len = template.ulValueLen; in soft_ecc_sign_verify_init_common()
537 CK_ATTRIBUTE template; in soft_ecc_verify() local
560 template.type = CKA_EC_POINT; in soft_ecc_verify()
561 template.pValue = point; in soft_ecc_verify()
562 template.ulValueLen = sizeof (point); in soft_ecc_verify()
563 rv = soft_get_public_key_attribute(key, &template); in soft_ecc_verify()
569 ECkey.publicValue.len = template.ulValueLen; in soft_ecc_verify()