Lines Matching refs:tmpl
114 int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl, in key_to_params() argument
145 if (tmpl == NULL) { in key_to_params()
151 if (p != NULL || tmpl != NULL) { in key_to_params()
158 || !ossl_param_build_set_octet_string(tmpl, p, in key_to_params()
178 && !ossl_param_build_set_bn(tmpl, px, in key_to_params()
182 && !ossl_param_build_set_bn(tmpl, py, in key_to_params()
230 if (!ossl_param_build_set_bn_pad(tmpl, params, in key_to_params()
242 int otherparams_to_params(const EC_KEY *ec, OSSL_PARAM_BLD *tmpl, in otherparams_to_params() argument
255 && !ossl_param_build_set_utf8_string(tmpl, params, in otherparams_to_params()
263 && !ossl_param_build_set_utf8_string(tmpl, params, in otherparams_to_params()
269 && !ossl_param_build_set_int(tmpl, params, in otherparams_to_params()
275 return ossl_param_build_set_int(tmpl, params, in otherparams_to_params()
456 OSSL_PARAM_BLD *tmpl = NULL; in ec_export() local
484 tmpl = OSSL_PARAM_BLD_new(); in ec_export()
485 if (tmpl == NULL) in ec_export()
495 ok = ok && ossl_ec_group_todata(EC_KEY_get0_group(ec), tmpl, NULL, in ec_export()
505 ok = ok && key_to_params(ec, tmpl, NULL, include_private, &pub_key); in ec_export()
508 ok = ok && otherparams_to_params(ec, tmpl, NULL); in ec_export()
510 if (!ok || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) { in ec_export()
518 OSSL_PARAM_BLD_free(tmpl); in ec_export()