Lines Matching defs:tmpl
111 int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl,
142 if (tmpl == NULL) {
148 if (p != NULL || tmpl != NULL) {
155 || !ossl_param_build_set_octet_string(tmpl, p,
175 && !ossl_param_build_set_bn(tmpl, px,
179 && !ossl_param_build_set_bn(tmpl, py,
227 if (!ossl_param_build_set_bn_pad(tmpl, params,
239 int otherparams_to_params(const EC_KEY *ec, OSSL_PARAM_BLD *tmpl,
252 && !ossl_param_build_set_utf8_string(tmpl, params,
260 && !ossl_param_build_set_utf8_string(tmpl, params,
266 && !ossl_param_build_set_int(tmpl, params,
272 return ossl_param_build_set_int(tmpl, params,
453 OSSL_PARAM_BLD *tmpl = NULL;
481 tmpl = OSSL_PARAM_BLD_new();
482 if (tmpl == NULL)
492 ok = ok && ossl_ec_group_todata(EC_KEY_get0_group(ec), tmpl, NULL,
502 ok = ok && key_to_params(ec, tmpl, NULL, include_private, &pub_key);
505 ok = ok && otherparams_to_params(ec, tmpl, NULL);
507 if (!ok || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) {
515 OSSL_PARAM_BLD_free(tmpl);