Lines Matching refs:selection

59     int selection;  member
133 static int dsa_has(const void *keydata, int selection) in dsa_has() argument
140 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_has()
143 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_has()
145 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_has()
147 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_has()
152 static int dsa_match(const void *keydata1, const void *keydata2, int selection) in dsa_match() argument
161 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_match()
164 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dsa_match()
174 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_match()
185 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dsa_match()
194 static int dsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in dsa_import() argument
202 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_import()
208 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_import()
210 selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in dsa_import()
218 static int dsa_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in dsa_export() argument
229 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_export()
236 if ((selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) in dsa_export()
238 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_export()
240 selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in dsa_export()
294 static const OSSL_PARAM *dsa_imexport_types(int selection) in dsa_imexport_types() argument
298 if ((selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) in dsa_imexport_types()
300 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in dsa_imexport_types()
305 static const OSSL_PARAM *dsa_import_types(int selection) in dsa_import_types() argument
307 return dsa_imexport_types(selection); in dsa_import_types()
310 static const OSSL_PARAM *dsa_export_types(int selection) in dsa_export_types() argument
312 return dsa_imexport_types(selection); in dsa_export_types()
381 static int dsa_validate(const void *keydata, int selection, int checktype) in dsa_validate() argument
389 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_validate()
392 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_validate()
395 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_validate()
398 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_validate()
402 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dsa_validate()
408 static void *dsa_gen_init(void *provctx, int selection, in dsa_gen_init() argument
414 if (!ossl_prov_is_running() || (selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_gen_init()
418 gctx->selection = selection; in dsa_gen_init()
662 if ((gctx->selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dsa_gen()
671 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_gen()
716 static void *dsa_dup(const void *keydata_from, int selection) in dsa_dup() argument
719 return ossl_dsa_dup(keydata_from, selection); in dsa_dup()