Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 1020) sorted by relevance

12345678910>>...41

/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/
H A Ddsa_kmgmt.c56 int selection; member
130 static int dsa_has(const void *keydata, int selection) in dsa_has() argument
137 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_has()
199 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_import()
294 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in dsa_imexport_types()
301 return dsa_imexport_types(selection); in dsa_import_types()
306 return dsa_imexport_types(selection); in dsa_export_types()
383 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_validate()
396 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dsa_validate()
412 gctx->selection = selection; in dsa_gen_init()
[all …]
H A Drsa_kmgmt.c115 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()
183 if ((selection & RSA_POSSIBLE_SELECTIONS) == 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()
322 return rsa_imexport_types(selection); in rsa_import_types()
327 return rsa_imexport_types(selection); in rsa_export_types()
400 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_validate()
404 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in rsa_validate()
[all …]
H A Decx_kmgmt.c80 int selection; member
122 static int ecx_has(const void *keydata, int selection) in ecx_has() argument
154 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match()
200 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ecx_import()
245 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_export()
271 static const OSSL_PARAM *ecx_imexport_types(int selection) in ecx_imexport_types() argument
273 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in ecx_imexport_types()
472 static void *ecx_gen_init(void *provctx, int selection, in ecx_gen_init() argument
484 gctx->selection = selection; in ecx_gen_init()
499 static void *x448_gen_init(void *provctx, int selection, in x448_gen_init() argument
[all …]
H A Ddh_kmgmt.c57 int selection; member
129 static int dh_has(const void *keydata, int selection) in dh_has() argument
136 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_has()
198 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_import()
303 return dh_imexport_types(selection); in dh_import_types()
308 return dh_imexport_types(selection); in dh_export_types()
414 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_validate()
435 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dh_validate()
450 if ((selection & (OSSL_KEYMGMT_SELECT_KEYPAIR in dh_gen_init_base()
455 gctx->selection = selection; in dh_gen_init_base()
[all …]
H A Dec_kmgmt.c304 int ec_has(const void *keydata, int selection) in ec_has() argument
311 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in ec_has()
557 const OSSL_PARAM *ec_imexport_types(int selection) in ec_imexport_types() argument
573 const OSSL_PARAM *ec_import_types(int selection) in ec_import_types() argument
575 return ec_imexport_types(selection); in ec_import_types()
579 const OSSL_PARAM *ec_export_types(int selection) in ec_export_types() argument
581 return ec_imexport_types(selection); in ec_export_types()
906 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in sm2_validate()
945 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in ec_validate()
989 int selection; member
[all …]
H A Dmac_legacy_kmgmt.c58 int selection; member
138 static int mac_has(const void *keydata, int selection) in mac_has() argument
238 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_import()
288 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in mac_export()
308 static const OSSL_PARAM *mac_imexport_types(int selection) in mac_imexport_types() argument
310 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_imexport_types()
322 static const OSSL_PARAM *cmac_imexport_types(int selection) in cmac_imexport_types() argument
324 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in cmac_imexport_types()
388 gctx->selection = selection; in mac_gen_init_common()
393 static void *mac_gen_init(void *provctx, int selection, in mac_gen_init() argument
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dkeymgmt_lib.c87 int evp_keymgmt_util_export(const EVP_PKEY *pk, int selection, in evp_keymgmt_util_export() argument
92 return evp_keymgmt_export(pk->keymgmt, pk->keydata, selection, in evp_keymgmt_util_export()
97 int selection) in evp_keymgmt_util_export_to_provider() argument
161 import_data.selection = selection; in evp_keymgmt_util_export_to_provider()
167 if (!evp_keymgmt_util_export(pk, selection, in evp_keymgmt_util_export_to_provider()
201 selection)) { in evp_keymgmt_util_export_to_provider()
249 if (keymgmt == p->keymgmt && (p->selection & selection) == selection) in evp_keymgmt_util_find_operation_cache()
272 p->selection = selection; in evp_keymgmt_util_cache_keydata()
328 int evp_keymgmt_util_has(EVP_PKEY *pk, int selection) in evp_keymgmt_util_has() argument
474 import_data.selection = selection; in evp_keymgmt_util_copy()
[all …]
H A Dkeymgmt_meth.c337 return keymgmt->gen_init(provctx, selection, params); in evp_keymgmt_gen_init()
435 return keymgmt->has(keydata, selection); in evp_keymgmt_has()
439 int selection, int checktype) in evp_keymgmt_validate() argument
449 int selection) in evp_keymgmt_match() argument
454 return keymgmt->match(keydata1, keydata2, selection); in evp_keymgmt_match()
462 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import()
466 int selection) in evp_keymgmt_import_types() argument
470 return keymgmt->import_types(selection); in evp_keymgmt_import_types()
486 return keymgmt->export_types(selection); in evp_keymgmt_export_types()
490 int selection) in evp_keymgmt_dup() argument
[all …]
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Dencode_key2text.c230 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_to_text()
237 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_to_text()
244 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dh_to_text()
305 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text()
312 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_to_text()
319 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dsa_to_text()
510 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_to_text()
623 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in ecx_to_text()
626 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0 in ecx_to_text()
810 int selection), in key2text_encode() argument
[all …]
H A Dencode_key2blob.c55 static int key2blob_check_selection(int selection, int selection_mask) in key2blob_check_selection() argument
69 if (selection == 0) in key2blob_check_selection()
73 int check1 = (selection & checks[i]) != 0; in key2blob_check_selection()
88 static int key2blob_encode(void *vctx, const void *key, int selection, in key2blob_encode() argument
129 static void *impl##2blob_import_object(void *ctx, int selection, \
133 ctx, selection, params); \
139 static int impl##2blob_does_selection(void *ctx, int selection) \
141 return key2blob_check_selection(selection, \
147 int selection, \
156 return key2blob_encode(vctx, key, selection, cout); \
H A Dencode_key2ms.c112 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() argument
114 return (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0; in key2ms_does_selection()
128 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() argument
137 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in key2msblob_encode()
139 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in key2msblob_encode()
150 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode() argument
158 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in key2pvk_encode()
186 impl##2##output##_import_object(void *ctx, int selection, \
190 ctx, selection, params); \
199 int selection, \
[all …]
H A Ddecode_msblob2key.c60 int selection; member
82 static int msblob2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in msblob2key_decode() argument
110 ctx->selection = selection; in msblob2key_decode()
133 if ((selection == 0 in msblob2key_decode()
134 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in msblob2key_decode()
144 if (selection != 0 && key == NULL) in msblob2key_decode()
147 if (key == NULL && (selection == 0 in msblob2key_decode()
148 || (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in msblob2key_decode()
153 if (selection != 0 && key == NULL) in msblob2key_decode()
217 return export(keydata, ctx->selection, export_cb, export_cbarg); in msblob2key_export_object()
H A Ddecode_pvk2key.c60 int selection; member
82 static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in pvk2key_decode() argument
94 ctx->selection = selection; in pvk2key_decode()
96 if ((selection == 0 in pvk2key_decode()
97 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_decode()
125 if (selection != 0 && key == NULL) in pvk2key_decode()
185 return export(keydata, ctx->selection, export_cb, export_cbarg); in pvk2key_export_object()
H A Ddecode_der2key.c93 int selection; member
142 static int der2key_check_selection(int selection, in der2key_check_selection() argument
157 if (selection == 0) in der2key_check_selection()
161 int check1 = (selection & checks[i]) != 0; in der2key_check_selection()
187 ctx->selection = selection; in der2key_decode()
196 if (selection == 0) in der2key_decode()
197 selection = ctx->desc->selection_mask; in der2key_decode()
198 if ((selection & ctx->desc->selection_mask) == 0) { in der2key_decode()
221 if (key == NULL && ctx->selection != 0) { in der2key_decode()
232 if (key == NULL && ctx->selection != 0) { in der2key_decode()
[all …]
/netbsd/external/ibm-public/postfix/dist/src/postmulti/
H A Dpostmulti.c753 if (selection && selection->type != INST_SEL_NONE) { in insert_instance()
912 switch (selection->type) { in match_instance_selection()
920 name = selection->name; in match_instance_selection()
931 selection->type); in match_instance_selection()
1300 insert_instance(new, selection); in install_new_instance()
1601 selection->type = INST_SEL_ALL; in iterate()
1658 INST_SELECTION selection; in main() local
1664 selection.type = INST_SEL_NONE; in main()
1729 selection.type = INST_SEL_ALL; in main()
1751 selection.name = optarg; in main()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/test/
H A Dendecoder_legacy_test.c437 EVP_PKEY *provided_pkey, int selection, in test_DER() argument
530 int selection = OSSL_KEYMGMT_SELECT_ALL; in test_key() local
548 int selection = in test_key() local
587 int selection = in test_key() local
605 int selection = OSSL_KEYMGMT_SELECT_ALL; in test_key() local
616 pkey, selection, structure)) in test_key()
623 int selection = in test_key() local
636 pkey, selection, structure)) in test_key()
653 pkey, selection, structure)) in test_key()
660 int selection = in test_key() local
[all …]
H A Dfake_rsaprov.c35 int selection; member
60 static int fake_rsa_keymgmt_has(const void *key, int selection) in fake_rsa_keymgmt_has() argument
63 has_selection = selection; in fake_rsa_keymgmt_has()
77 static int fake_rsa_keymgmt_import(void *keydata, int selection, in fake_rsa_keymgmt_import() argument
161 static int fake_rsa_keymgmt_export(void *keydata, int selection, in fake_rsa_keymgmt_export() argument
167 if (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) in fake_rsa_keymgmt_export()
190 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection) in fake_rsa_keymgmt_imptypes() argument
193 imptypes_selection = selection; in fake_rsa_keymgmt_imptypes()
204 static const OSSL_PARAM *fake_rsa_keymgmt_exptypes(int selection) in fake_rsa_keymgmt_exptypes() argument
207 exptypes_selection = selection; in fake_rsa_keymgmt_exptypes()
[all …]
/netbsd/external/bsd/nvi/dist/motif_l/
H A Dm_copypaste.c64 Atom *selection, in peekProc() argument
71 static void peekProc( widget, data, selection, type, value, length, format ) in peekProc()
74 Atom *selection, *type;
128 Atom *selection, in convertProc() argument
136 static int convertProc( widget, selection, target, type, value, length, format ) in convertProc()
138 Atom *selection, *target, *type;
208 Atom *selection, in gotProc() argument
215 static void gotProc( widget, data, selection, type, value, length, format ) in gotProc()
218 Atom *selection, *type;
/netbsd/crypto/external/bsd/openssl/dist/crypto/pem/
H A Dpem_pkey.c37 int selection) in pem_read_bio_key_decoder() argument
48 selection, libctx, propq); in pem_read_bio_key_decoder()
79 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pem_read_bio_key_decoder()
80 selection = selection & ~OSSL_KEYMGMT_SELECT_PUBLIC_KEY; in pem_read_bio_key_decoder()
82 if (!evp_keymgmt_util_has(pkey, selection)) { in pem_read_bio_key_decoder()
103 int selection) in pem_read_bio_key_legacy() argument
113 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in pem_read_bio_key_legacy()
123 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in pem_read_bio_key_legacy()
185 } else if ((selection & EVP_PKEY_KEYPAIR) == 0 in pem_read_bio_key_legacy()
218 int selection) in pem_read_bio_key() argument
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/encode_decode/
H A Dencoder_pkey.c115 && !encoder->does_selection(provctx, data->ctx->selection)) in collect_encoder()
156 int selection; member
171 encoder->import_object(encoderctx, construct_data->selection, params); in encoder_import_cb()
191 if (!evp_keymgmt_export(pk->keymgmt, pk->keydata, data->selection, in encoder_construct_pkey()
224 int selection, in ossl_encoder_ctx_setup_for_pkey() argument
303 data->selection = selection; in ossl_encoder_ctx_setup_for_pkey()
318 int selection, in OSSL_ENCODER_CTX_new_for_pkey() argument
351 (void *)ctx, EVP_PKEY_get0_type_name(pkey), selection); in OSSL_ENCODER_CTX_new_for_pkey()
359 && OSSL_ENCODER_CTX_set_selection(ctx, selection) in OSSL_ENCODER_CTX_new_for_pkey()
360 && ossl_encoder_ctx_setup_for_pkey(ctx, pkey, selection, propquery) in OSSL_ENCODER_CTX_new_for_pkey()
/netbsd/crypto/external/bsd/openssl/dist/demos/encode/
H A Dec_encode.c34 int selection = 0; in load_key() local
47 selection, in load_key()
104 int selection; in store_key() local
121 selection = (passphrase != NULL) in store_key()
125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
H A Drsa_encode.c34 int selection = 0; in load_key() local
47 selection, in load_key()
104 int selection; in store_key() local
121 selection = (passphrase != NULL) in store_key()
125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
/netbsd/crypto/external/bsd/openssl/dist/doc/internal/man3/
H A Devp_keymgmt_util_export_to_provider.pod21 int evp_keymgmt_util_export(const EVP_PKEY *pk, int selection,
24 int selection);
27 int selection);
30 void *keydata, int selection);
33 int selection, const OSSL_PARAM params[]);
70 In all functions that take a I<selection> argument, the selection is used to
73 the selection.
/netbsd/crypto/external/bsd/openssl/dist/crypto/dsa/
H A Ddsa_backend.c82 DSA *ossl_dsa_dup(const DSA *dsa, int selection) in ossl_dsa_dup() argument
93 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0 in ossl_dsa_dup()
99 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0 in ossl_dsa_dup()
100 && ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) == 0 in ossl_dsa_dup()
104 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in ossl_dsa_dup()
105 && ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) == 0 in ossl_dsa_dup()
/netbsd/crypto/external/bsd/openssl/dist/include/crypto/
H A Devp.h592 int selection; member
773 int selection; member
780 int evp_keymgmt_util_export(const EVP_PKEY *pk, int selection,
783 int selection);
789 void *keydata, int selection);
793 int evp_keymgmt_util_has(EVP_PKEY *pk, int selection);
829 int selection, int checktype);
832 int selection);
837 int selection);
841 int selection);
[all …]

12345678910>>...41