Lines Matching refs:params
136 OSSL_PARAM params[], int include_private) in key_to_params() argument
150 OSSL_PARAM *params = NULL; in template_export() local
171 params = OSSL_PARAM_BLD_to_param(tmpl); in template_export()
172 if (params == NULL) in template_export()
175 ret = param_cb(params, cbarg); in template_export()
176 OSSL_PARAM_free(params); in template_export()
184 const OSSL_PARAM params[], in ossl_template_key_fromdata() argument
191 if (ossl_param_is_empty(params)) in ossl_template_key_fromdata()
196 param_pub_key = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_PUB_KEY); in ossl_template_key_fromdata()
199 OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_PRIV_KEY); in ossl_template_key_fromdata()
215 static int template_import(void *key, int selection, const OSSL_PARAM params[]) in template_import() argument
228 ok = ok && ossl_template_key_fromdata(key, params, include_private); in template_import()
251 static int template_get_params(void *key, OSSL_PARAM params[]) in template_get_params() argument
257 if (ossl_param_is_empty(params)) in template_get_params()
262 if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_BITS)) != NULL in template_get_params()
265 if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_BITS)) != NULL in template_get_params()
268 if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_MAX_SIZE)) != NULL in template_get_params()
271 if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY)) != NULL) { in template_get_params()
294 static int template_set_params(void *key, const OSSL_PARAM params[]) in template_set_params() argument
299 if (ossl_param_is_empty(params)) in template_set_params()
302 p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY); in template_set_params()
322 static int template_gen_set_params(void *genctx, const OSSL_PARAM params[]) in template_gen_set_params() argument
334 const OSSL_PARAM params[]) in template_gen_init() argument
349 if (!template_gen_set_params(gctx, params)) { in template_gen_init()