Lines Matching refs:selection

115 static int rsa_has(const void *keydata, int selection)  in rsa_has()  argument
122 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_has()
126 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in rsa_has()
128 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in rsa_has()
130 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in rsa_has()
135 static int rsa_match(const void *keydata1, const void *keydata2, int selection) in rsa_match() argument
146 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in rsa_match()
149 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in rsa_match()
159 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_match()
173 static int rsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in rsa_import() argument
183 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_import()
188 if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0) in rsa_import()
193 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in rsa_import()
195 selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in rsa_import()
203 static int rsa_export(void *keydata, int selection, in rsa_export() argument
215 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_export()
222 if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0) in rsa_export()
225 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in rsa_export()
227 selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY ? 1 : 0; in rsa_export()
313 static const OSSL_PARAM *rsa_imexport_types(int selection) in rsa_imexport_types() argument
315 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in rsa_imexport_types()
320 static const OSSL_PARAM *rsa_import_types(int selection) in rsa_import_types() argument
322 return rsa_imexport_types(selection); in rsa_import_types()
325 static const OSSL_PARAM *rsa_export_types(int selection) in rsa_export_types() argument
327 return rsa_imexport_types(selection); in rsa_export_types()
392 static int rsa_validate(const void *keydata, int selection, int checktype) in rsa_validate() argument
400 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_validate()
404 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in rsa_validate()
408 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in rsa_validate()
410 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in rsa_validate()
450 static void *gen_init(void *provctx, int selection, int rsa_type, in gen_init() argument
459 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in gen_init()
486 static void *rsa_gen_init(void *provctx, int selection, in rsa_gen_init() argument
489 return gen_init(provctx, selection, RSA_FLAG_TYPE_RSA, params); in rsa_gen_init()
492 static void *rsapss_gen_init(void *provctx, int selection, in rsapss_gen_init() argument
495 return gen_init(provctx, selection, RSA_FLAG_TYPE_RSASSAPSS, params); in rsapss_gen_init()
682 static void *rsa_dup(const void *keydata_from, int selection) in rsa_dup() argument
686 && (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in rsa_dup()
687 return ossl_rsa_dup(keydata_from, selection); in rsa_dup()