Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd/crypto/openssl/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()
226 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_export()
304 return dsa_imexport_types(selection); in dsa_import_types()
309 return dsa_imexport_types(selection); in dsa_export_types()
386 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_validate()
399 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dsa_validate()
415 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()
241 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ecx_export()
248 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_export()
276 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in ecx_imexport_types()
475 static void *ecx_gen_init(void *provctx, int selection, in ecx_gen_init() argument
487 gctx->selection = selection; in ecx_gen_init()
502 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()
225 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_export()
306 return dh_imexport_types(selection); in dh_import_types()
311 return dh_imexport_types(selection); in dh_export_types()
417 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_validate()
438 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dh_validate()
453 if ((selection & (OSSL_KEYMGMT_SELECT_KEYPAIR 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()
284 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_export()
291 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in mac_export()
311 static const OSSL_PARAM *mac_imexport_types(int selection) in mac_imexport_types() argument
313 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_imexport_types()
325 static const OSSL_PARAM *cmac_imexport_types(int selection) in cmac_imexport_types() argument
391 gctx->selection = selection; in mac_gen_init_common()
396 static void *mac_gen_init(void *provctx, int selection, in mac_gen_init() argument
[all …]
/freebsd/crypto/openssl/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 …]
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Ddecode_msblob2key.c60 int selection; member
84 if (selection == 0) in msblob2key_does_selection()
87 if ((selection & (OSSL_KEYMGMT_SELECT_PRIVATE_KEY in msblob2key_does_selection()
122 ctx->selection = selection; in msblob2key_decode()
145 if ((selection == 0 in msblob2key_decode()
156 if (selection != 0 && key == NULL) in msblob2key_decode()
159 if (key == NULL && (selection == 0 in msblob2key_decode()
165 if (selection != 0 && key == NULL) in msblob2key_decode()
226 int selection = ctx->selection; in msblob2key_export_object() local
228 if (selection == 0) in msblob2key_export_object()
[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()
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
195 if (selection == 0) in pvk2key_export_object()
[all …]
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_KEYPAIR) != 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_KEYPAIR) != 0) { in dsa_to_text()
510 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_to_text()
517 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_to_text()
528 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_to_text()
797 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_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()
187 ctx->selection = selection; in der2key_decode()
196 if (selection == 0) in der2key_decode()
197 selection = ctx->desc->selection_mask; in der2key_decode()
221 if (key == NULL && ctx->selection != 0) { in der2key_decode()
232 if (key == NULL && ctx->selection != 0) { in der2key_decode()
319 int selection = ctx->selection; in der2key_export_object() local
321 if (selection == 0) in der2key_export_object()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DHTMLLogger.js15 let selection = {}; variable
17 Object.assign(selection, changes);
20 data.selection = selection;
32 let changed = root.selection == null;
33 root.selection ||= {};
34 for (key of root.dataset.selection.split(',')) {
36 if (data.selection[key] != root.selection[key]) {
37 root.selection[key] = data.selection[key];
40 if (data.selection[key] == null) {
162 …iter: e => (selection.iter && selection.bb == e.dataset.bb) ? selection.iter : lastIter(e.dataset.…
/freebsd/crypto/openssl/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 …]
/freebsd/crypto/openssl/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()
/freebsd/crypto/openssl/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 …]
/freebsd/crypto/openssl/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()
/freebsd/crypto/openssl/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()
/freebsd/crypto/openssl/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.
/freebsd/crypto/openssl/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>>...15