Lines Matching refs:selection
217 static int dh_to_text(BIO *out, const void *key, int selection) in dh_to_text() argument
231 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_to_text()
233 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_to_text()
235 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_to_text()
238 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_to_text()
245 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_to_text()
252 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dh_to_text()
293 static int dsa_to_text(BIO *out, const void *key, int selection) in dsa_to_text() argument
306 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text()
308 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_to_text()
310 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_to_text()
313 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_to_text()
320 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_to_text()
327 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dsa_to_text()
492 static int ec_to_text(BIO *out, const void *key, int selection) in ec_to_text() argument
511 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_to_text()
513 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ec_to_text()
515 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_to_text()
519 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_to_text()
530 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_to_text()
553 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_to_text()
571 static int ecx_to_text(BIO *out, const void *key, int selection) in ecx_to_text() argument
596 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_to_text()
606 } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_to_text()
631 static int rsa_to_text(BIO *out, const void *key, int selection) in rsa_to_text() argument
659 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
663 } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in rsa_to_text()
673 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
687 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
726 if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0) { in rsa_to_text()
797 static int key2text_encode(void *vctx, const void *key, int selection, in key2text_encode() argument
800 int selection), in key2text_encode() argument
809 ret = key2text(out, key, selection); in key2text_encode()
822 static void *impl##2text_import_object(void *ctx, int selection, \
826 ctx, selection, params); \
835 int selection, \
844 return key2text_encode(vctx, key, selection, cout, \