Lines Matching refs:selection

42 static int dh_to_text(BIO *out, const void *key, int selection)  in DEFINE_SPECIAL_STACK_OF_CONST()
56 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in DEFINE_SPECIAL_STACK_OF_CONST()
58 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in DEFINE_SPECIAL_STACK_OF_CONST()
60 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in DEFINE_SPECIAL_STACK_OF_CONST()
63 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in DEFINE_SPECIAL_STACK_OF_CONST()
70 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in DEFINE_SPECIAL_STACK_OF_CONST()
77 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in DEFINE_SPECIAL_STACK_OF_CONST()
116 static int dsa_to_text(BIO *out, const void *key, int selection) in dsa_to_text() argument
129 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text()
131 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_to_text()
133 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_to_text()
136 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_to_text()
143 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_to_text()
150 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dsa_to_text()
313 static int ec_to_text(BIO *out, const void *key, int selection) in ec_to_text() argument
332 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_to_text()
334 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ec_to_text()
336 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_to_text()
340 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_to_text()
351 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_to_text()
375 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_to_text()
387 static int ecx_to_text(BIO *out, const void *key, int selection) in ecx_to_text() argument
412 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_to_text()
422 } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_to_text()
443 static int ml_kem_to_text(BIO *out, const void *vkey, int selection) in ml_kem_to_text() argument
445 return ossl_ml_kem_key_to_text(out, (ML_KEM_KEY *)vkey, selection); in ml_kem_to_text()
452 static int slh_dsa_to_text(BIO *out, const void *key, int selection) in slh_dsa_to_text() argument
454 return ossl_slh_dsa_key_to_text(out, (SLH_DSA_KEY *)key, selection); in slh_dsa_to_text()
458 static int rsa_to_text(BIO *out, const void *key, int selection) in rsa_to_text() argument
486 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
490 } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in rsa_to_text()
500 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
516 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_to_text()
555 if ((selection & OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS) != 0) { in rsa_to_text()
618 static int ml_dsa_to_text(BIO *out, const void *key, int selection) in ml_dsa_to_text() argument
620 return ossl_ml_dsa_key_to_text(out, (ML_DSA_KEY *)key, selection); in ml_dsa_to_text()
634 static int key2text_encode(void *vctx, const void *key, int selection, in key2text_encode() argument
637 int selection), in key2text_encode() argument
646 ret = key2text(out, key, selection); in key2text_encode()
659 static void *impl##2text_import_object(void *ctx, int selection, \
663 ctx, selection, params); \
672 int selection, \
681 return key2text_encode(vctx, key, selection, cout, \