Lines Matching refs:tmpl
157 static int ec_group_explicit_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl, in ec_group_explicit_todata() argument
187 if (tmpl != NULL || param_p != NULL || param_a != NULL || param_b != NULL) { in ec_group_explicit_todata()
201 if (!ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_P, p) in ec_group_explicit_todata()
202 || !ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_A, a) in ec_group_explicit_todata()
203 || !ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_B, b)) { in ec_group_explicit_todata()
210 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
217 if (!ossl_param_build_set_bn(tmpl, params, OSSL_PKEY_PARAM_EC_ORDER, in ec_group_explicit_todata()
225 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
226 if (!ossl_param_build_set_utf8_string(tmpl, params, in ec_group_explicit_todata()
235 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
249 if (!ossl_param_build_set_octet_string(tmpl, params, in ec_group_explicit_todata()
258 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
262 && !ossl_param_build_set_bn(tmpl, params, in ec_group_explicit_todata()
270 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
276 && !ossl_param_build_set_octet_string(tmpl, params, in ec_group_explicit_todata()
288 int ossl_ec_group_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl, in ossl_ec_group_todata() argument
306 tmpl, params, in ossl_ec_group_todata()
314 || !ossl_param_build_set_utf8_string(tmpl, params, in ossl_ec_group_todata()
321 if (!ossl_param_build_set_int(tmpl, params, in ossl_ec_group_todata()
333 if (tmpl == NULL || curve_nid == NID_undef) in ossl_ec_group_todata()
334 if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf)) in ossl_ec_group_todata()
342 || !ossl_param_build_set_utf8_string(tmpl, params, in ossl_ec_group_todata()