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()
518 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_to_text()
529 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_to_text()
551 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_to_text()
569 static int ecx_to_text(BIO *out, const void *key, int selection) in ecx_to_text() argument
594 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_to_text()
604 } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_to_text()
629 static int rsa_to_text(BIO *out, const void *key, int selection) in rsa_to_text() argument
657 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
661 } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in rsa_to_text()
671 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
685 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
724 if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0) { in rsa_to_text()
795 static int key2text_encode(void *vctx, const void *key, int selection, in key2text_encode() argument
798 int selection), in key2text_encode() argument
807 ret = key2text(out, key, selection); in key2text_encode()
820 static void *impl##2text_import_object(void *ctx, int selection, \
824 ctx, selection, params); \
833 int selection, \
842 return key2text_encode(vctx, key, selection, cout, \