Home
last modified time | relevance | path

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

12345678910>>...35

/netbsd-src/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()
140 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_has()
142 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_has()
144 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_has()
149 static int dsa_match(const void *keydata1, const void *keydata2, int selection) in dsa_match() argument
158 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_match()
161 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dsa_match()
171 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_match()
[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()
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
[all …]
H A Decx_kmgmt.c80 int selection; member
122 static int ecx_has(const void *keydata, int selection) in ecx_has() argument
134 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ecx_has()
137 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ecx_has()
143 static int ecx_match(const void *keydata1, const void *keydata2, int selection) in ecx_match() argument
152 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ecx_match()
154 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match()
157 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_match()
172 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_match()
191 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() 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()
139 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_has()
141 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_has()
143 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_has()
148 static int dh_match(const void *keydata1, const void *keydata2, int selection) in dh_match() argument
157 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_match()
160 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dh_match()
170 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_match()
[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()
314 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ec_has()
316 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_has()
318 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_has()
328 static int ec_match(const void *keydata1, const void *keydata2, int selection) in ec_match() argument
344 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_match()
347 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_match()
350 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ec_match()
360 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_match()
[all …]
H A Dmac_legacy_kmgmt.c58 int selection; member
138 static int mac_has(const void *keydata, int selection) in mac_has() argument
151 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_has()
157 static int mac_match(const void *keydata1, const void *keydata2, int selection) in mac_match() argument
166 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in mac_match()
231 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() argument
238 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_import()
273 static int mac_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in mac_export() argument
284 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_export()
291 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in mac_export()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dkeymgmt_lib.c50 if (evp_keymgmt_import(data->keymgmt, data->keydata, data->selection, in evp_keymgmt_util_try_import()
87 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
131 op = evp_keymgmt_util_find_operation_cache(pk, keymgmt, selection); in evp_keymgmt_util_export_to_provider()
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()
177 op = evp_keymgmt_util_find_operation_cache(pk, keymgmt, selection); in evp_keymgmt_util_export_to_provider()
201 selection)) { in evp_keymgmt_util_export_to_provider()
238 int selection) in evp_keymgmt_util_find_operation_cache() argument
[all …]
H A Dkeymgmt_meth.c330 void *evp_keymgmt_gen_init(const EVP_KEYMGMT *keymgmt, int selection, in evp_keymgmt_gen_init() argument
337 return keymgmt->gen_init(provctx, selection, params); in evp_keymgmt_gen_init()
432 int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keydata, int selection) in evp_keymgmt_has() argument
435 return keymgmt->has(keydata, selection); in evp_keymgmt_has()
439 int selection, int checktype) in evp_keymgmt_validate() argument
444 return keymgmt->validate(keydata, selection, checktype); in evp_keymgmt_validate()
449 int selection) in evp_keymgmt_match() argument
454 return keymgmt->match(keydata1, keydata2, selection); in evp_keymgmt_match()
458 int selection, const OSSL_PARAM params[]) in evp_keymgmt_import() argument
462 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Ddecode_msblob2key.c60 int selection; member
82 static int msblob2key_does_selection(void *provctx, int selection) in msblob2key_does_selection() argument
84 if (selection == 0) in msblob2key_does_selection()
87 if ((selection & (OSSL_KEYMGMT_SELECT_PRIVATE_KEY in msblob2key_does_selection()
94 static int msblob2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in msblob2key_decode() argument
122 ctx->selection = selection; in msblob2key_decode()
145 if ((selection == 0 in msblob2key_decode()
146 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in msblob2key_decode()
156 if (selection != 0 && key == NULL) in msblob2key_decode()
159 if (key == NULL && (selection == 0 in msblob2key_decode()
[all …]
H A Dencode_key2text.c216 static int dh_to_text(BIO *out, const void *key, int selection) in dh_to_text() argument
230 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_to_text()
232 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_to_text()
234 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_to_text()
237 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_to_text()
244 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_to_text()
251 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dh_to_text()
292 static int dsa_to_text(BIO *out, const void *key, int selection) in dsa_to_text() argument
305 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text()
307 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_to_text()
[all …]
H A Ddecode_pvk2key.c60 int selection; member
82 static int pvk2key_does_selection(void *provctx, int selection) in pvk2key_does_selection() argument
84 if (selection == 0) in pvk2key_does_selection()
87 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_does_selection()
93 static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in pvk2key_decode() argument
105 ctx->selection = selection; in pvk2key_decode()
107 if ((selection == 0 in pvk2key_decode()
108 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_decode()
136 if (selection != 0 && key == NULL) in pvk2key_decode()
193 int selection = ctx->selection; in pvk2key_export_object() local
[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 …]
/netbsd-src/external/ibm-public/postfix/dist/src/postmulti/
H A Dpostmulti.c741 static void insert_instance(INSTANCE *ip, INST_SELECTION *selection) in insert_instance() argument
753 if (selection && selection->type != INST_SEL_NONE) { in insert_instance()
755 if (match_instance_selection(RING_TO_INSTANCE(old), selection)) { in insert_instance()
760 if (selection->type != INST_SEL_ALL) in insert_instance()
901 static int match_instance_selection(INSTANCE *ip, INST_SELECTION *selection) in match_instance_selection() argument
912 switch (selection->type) { in match_instance_selection()
918 return (ip->gname != 0 && strcmp(selection->name, ip->gname) == 0); in match_instance_selection()
920 name = selection->name; in match_instance_selection()
931 selection->type); in match_instance_selection()
1289 INST_SELECTION *selection, in install_new_instance() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dendecoder_legacy_test.c304 EVP_PKEY *provided_pkey, int selection, in test_protected_PEM() argument
322 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_protected_PEM()
338 keytype, selection, in test_protected_PEM()
372 EVP_PKEY *provided_pkey, int selection, in test_unprotected_PEM() argument
390 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_unprotected_PEM()
405 keytype, selection, in test_unprotected_PEM()
437 EVP_PKEY *provided_pkey, int selection, in test_DER() argument
455 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_DER()
472 keytype, selection, in test_DER()
530 int selection = OSSL_KEYMGMT_SELECT_ALL; 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-src/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-src/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()
181 } else if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0 in pem_read_bio_key_legacy()
182 && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in pem_read_bio_key_legacy()
[all …]
/netbsd-src/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()
H A Ddecoder_pkey.c59 int selection; member
153 if (data->selection == 0) in decoder_construct_pkey()
155 import_data.selection = OSSL_KEYMGMT_SELECT_ALL; in decoder_construct_pkey()
157 import_data.selection = data->selection; in decoder_construct_pkey()
251 && !decoder->does_selection(provctx, data->ctx->selection)) in collect_decoder()
347 process_data->selection = ctx->selection; in ossl_decoder_ctx_setup_for_pkey()
433 const char *keytype, int selection, in OSSL_DECODER_CTX_new_for_pkey() argument
446 (void *)ctx, keytype, selection); in OSSL_DECODER_CTX_new_for_pkey()
453 && OSSL_DECODER_CTX_set_selection(ctx, selection) in OSSL_DECODER_CTX_new_for_pkey()
/netbsd-src/external/mit/isl/dist/
H A Disl_vertices.c270 int *selection) in can_select() argument
301 if (selection[i] != DESELECTED) in can_select()
428 int *selection = NULL; in isl_basic_set_compute_vertices() local
481 selection = isl_alloc_array(copy->ctx, int, copy->n_ineq); in isl_basic_set_compute_vertices()
484 if ((copy->n_ineq && (!selection || !snap)) || !facets) in isl_basic_set_compute_vertices()
493 (!init && selection[level] != SELECTED)) { in isl_basic_set_compute_vertices()
502 selection); in isl_basic_set_compute_vertices()
506 selection[level] = SELECTED; in isl_basic_set_compute_vertices()
509 selection[level] = UNSELECTED; in isl_basic_set_compute_vertices()
511 selection[level] = DESELECTED; in isl_basic_set_compute_vertices()
[all …]
/netbsd-src/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-src/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-src/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);
786 int selection);
789 void *keydata, int selection);
792 int selection, const OSSL_PARAM params[]);
793 int evp_keymgmt_util_has(EVP_PKEY *pk, int selection);
794 int evp_keymgmt_util_match(EVP_PKEY *pk1, EVP_PKEY *pk2, int selection);
795 int evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection);
[all …]

12345678910>>...35