Home
last modified time | relevance | path

Searched refs:selection (Results 1 - 25 of 176) sorted by relevance

12345678

/third_party/node/deps/openssl/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()
138 return 1; /* the selection is not missing */ 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 in dsa_match()
191 dsa_import(void *keydata, int selection, const OSSL_PARAM params[]) dsa_import() argument
215 dsa_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) dsa_export() argument
291 dsa_imexport_types(int selection) dsa_imexport_types() argument
302 dsa_import_types(int selection) dsa_import_types() argument
307 dsa_export_types(int selection) dsa_export_types() argument
378 dsa_validate(const void *keydata, int selection, int checktype) dsa_validate() argument
405 dsa_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) dsa_gen_init() argument
651 dsa_dup(const void *keydata_from, int selection) dsa_dup() argument
[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()
123 return 1; /* the selection is not missing */ 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 in rsa_match()
173 rsa_import(void *keydata, int selection, const OSSL_PARAM params[]) rsa_import() argument
203 rsa_export(void *keydata, int selection, OSSL_CALLBACK *param_callback, void *cbarg) rsa_export() argument
313 rsa_imexport_types(int selection) rsa_imexport_types() argument
320 rsa_import_types(int selection) rsa_import_types() argument
325 rsa_export_types(int selection) rsa_export_types() argument
392 rsa_validate(const void *keydata, int selection, int checktype) rsa_validate() argument
450 gen_init(void *provctx, int selection, int rsa_type, const OSSL_PARAM params[]) gen_init() argument
486 rsa_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) rsa_gen_init() argument
492 rsapss_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) rsapss_gen_init() argument
682 rsa_dup(const void *keydata_from, int selection) rsa_dup() 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()
137 return 1; /* the selection is not missing */ 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 in dh_match()
190 dh_import(void *keydata, int selection, const OSSL_PARAM params[]) dh_import() argument
214 dh_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) dh_export() argument
293 dh_imexport_types(int selection) dh_imexport_types() argument
304 dh_import_types(int selection) dh_import_types() argument
309 dh_export_types(int selection) dh_export_types() argument
409 dh_validate(const void *keydata, int selection, int checktype) dh_validate() argument
444 dh_gen_init_base(void *provctx, int selection, const OSSL_PARAM params[], int type) dh_gen_init_base() argument
485 dh_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) dh_gen_init() argument
491 dhx_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) dhx_gen_init() argument
819 dh_dup(const void *keydata_from, int selection) dh_dup() argument
[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()
312 return 1; /* the selection is not missing */ 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 in ec_match()
390 common_import(void *keydata, int selection, const OSSL_PARAM params[], int sm2_wanted) common_import() argument
433 ec_import(void *keydata, int selection, const OSSL_PARAM params[]) ec_import() argument
441 sm2_import(void *keydata, int selection, const OSSL_PARAM params[]) sm2_import() argument
449 ec_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) ec_export() argument
557 ec_imexport_types(int selection) ec_imexport_types() argument
573 ec_import_types(int selection) ec_import_types() argument
579 ec_export_types(int selection) ec_export_types() argument
897 sm2_validate(const void *keydata, int selection, int checktype) sm2_validate() argument
936 ec_validate(const void *keydata, int selection, int checktype) ec_validate() argument
989 int selection; global() member
994 ec_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) ec_gen_init() argument
1017 sm2_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) sm2_gen_init() argument
1400 ec_dup(const void *keydata_from, int selection) ec_dup() 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, cons argument
230 ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) ecx_export() argument
274 ecx_imexport_types(int selection) ecx_imexport_types() argument
475 ecx_gen_init(void *provctx, int selection, const OSSL_PARAM params[], ECX_KEY_TYPE type) ecx_gen_init() argument
496 x25519_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) x25519_gen_init() argument
502 x448_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) x448_gen_init() argument
508 ed25519_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) ed25519_gen_init() argument
514 ed448_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) ed448_gen_init() argument
715 ecx_dup(const void *keydata_from, int selection) ecx_dup() argument
749 ecx_validate(const void *keydata, int selection, int type, size_t keylen) ecx_validate() argument
777 x25519_validate(const void *keydata, int selection, int checktype) x25519_validate() argument
782 x448_validate(const void *keydata, int selection, int checktype) x448_validate() argument
787 ed25519_validate(const void *keydata, int selection, int checktype) ed25519_validate() argument
792 ed448_validate(const void *keydata, int selection, int checktype) ed448_validate() argument
[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 in mac_export()
311 mac_imexport_types(int selection) mac_imexport_types() argument
325 cmac_imexport_types(int selection) cmac_imexport_types() argument
381 mac_gen_init_common(void *provctx, int selection) mac_gen_init_common() argument
396 mac_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) mac_gen_init() argument
408 cmac_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) cmac_gen_init() argument
[all...]
/third_party/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()
138 return 1; /* the selection is not missing */ 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 in dsa_match()
191 dsa_import(void *keydata, int selection, const OSSL_PARAM params[]) dsa_import() argument
215 dsa_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) dsa_export() argument
288 dsa_imexport_types(int selection) dsa_imexport_types() argument
299 dsa_import_types(int selection) dsa_import_types() argument
304 dsa_export_types(int selection) dsa_export_types() argument
375 dsa_validate(const void *keydata, int selection, int checktype) dsa_validate() argument
402 dsa_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) dsa_gen_init() argument
648 dsa_dup(const void *keydata_from, int selection) dsa_dup() argument
[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()
123 return 1; /* the selection is not missing */ 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 in rsa_match()
173 rsa_import(void *keydata, int selection, const OSSL_PARAM params[]) rsa_import() argument
203 rsa_export(void *keydata, int selection, OSSL_CALLBACK *param_callback, void *cbarg) rsa_export() argument
313 rsa_imexport_types(int selection) rsa_imexport_types() argument
320 rsa_import_types(int selection) rsa_import_types() argument
325 rsa_export_types(int selection) rsa_export_types() argument
392 rsa_validate(const void *keydata, int selection, int checktype) rsa_validate() argument
450 gen_init(void *provctx, int selection, int rsa_type, const OSSL_PARAM params[]) gen_init() argument
486 rsa_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) rsa_gen_init() argument
492 rsapss_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) rsapss_gen_init() argument
682 rsa_dup(const void *keydata_from, int selection) rsa_dup() 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()
137 return 1; /* the selection is not missing */ 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 in dh_match()
190 dh_import(void *keydata, int selection, const OSSL_PARAM params[]) dh_import() argument
214 dh_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) dh_export() argument
290 dh_imexport_types(int selection) dh_imexport_types() argument
301 dh_import_types(int selection) dh_import_types() argument
306 dh_export_types(int selection) dh_export_types() argument
406 dh_validate(const void *keydata, int selection, int checktype) dh_validate() argument
441 dh_gen_init_base(void *provctx, int selection, const OSSL_PARAM params[], int type) dh_gen_init_base() argument
482 dh_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) dh_gen_init() argument
488 dhx_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) dhx_gen_init() argument
816 dh_dup(const void *keydata_from, int selection) dh_dup() argument
[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()
312 return 1; /* the selection is not missing */ 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 in ec_match()
390 common_import(void *keydata, int selection, const OSSL_PARAM params[], int sm2_wanted) common_import() argument
433 ec_import(void *keydata, int selection, const OSSL_PARAM params[]) ec_import() argument
441 sm2_import(void *keydata, int selection, const OSSL_PARAM params[]) sm2_import() argument
449 ec_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) ec_export() argument
557 ec_imexport_types(int selection) ec_imexport_types() argument
573 ec_import_types(int selection) ec_import_types() argument
579 ec_export_types(int selection) ec_export_types() argument
897 sm2_validate(const void *keydata, int selection, int checktype) sm2_validate() argument
936 ec_validate(const void *keydata, int selection, int checktype) ec_validate() argument
989 int selection; global() member
994 ec_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) ec_gen_init() argument
1017 sm2_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) sm2_gen_init() argument
1400 ec_dup(const void *keydata_from, int selection) ec_dup() 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, cons argument
230 ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, void *cbarg) ecx_export() argument
271 ecx_imexport_types(int selection) ecx_imexport_types() argument
472 ecx_gen_init(void *provctx, int selection, const OSSL_PARAM params[], ECX_KEY_TYPE type) ecx_gen_init() argument
493 x25519_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) x25519_gen_init() argument
499 x448_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) x448_gen_init() argument
505 ed25519_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) ed25519_gen_init() argument
511 ed448_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) ed448_gen_init() argument
712 ecx_dup(const void *keydata_from, int selection) ecx_dup() argument
746 ecx_validate(const void *keydata, int selection, int type, size_t keylen) ecx_validate() argument
774 x25519_validate(const void *keydata, int selection, int checktype) x25519_validate() argument
779 x448_validate(const void *keydata, int selection, int checktype) x448_validate() argument
784 ed25519_validate(const void *keydata, int selection, int checktype) ed25519_validate() argument
789 ed448_validate(const void *keydata, int selection, int checktype) ed448_validate() argument
[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
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
322 cmac_imexport_types(int selection) cmac_imexport_types() argument
378 mac_gen_init_common(void *provctx, int selection) mac_gen_init_common() argument
393 mac_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) mac_gen_init() argument
405 cmac_gen_init(void *provctx, int selection, const OSSL_PARAM params[]) cmac_gen_init() argument
[all...]
/third_party/openssl/providers/implementations/encode_decode/
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_PUBLIC_KEY) != 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 in dsa_to_text()
491 ec_to_text(BIO *out, const void *key, int selection) ec_to_text() argument
568 ecx_to_text(BIO *out, const void *key, int selection) ecx_to_text() argument
641 rsa_to_text(BIO *out, const void *key, int selection) rsa_to_text() argument
807 key2text_encode(void *vctx, const void *key, int selection, OSSL_CORE_BIO *cout, int (*key2text)(BIO *out, const void *key, int selection), OSSL_PASSPHRASE_CALLBACK *cb, void *cbarg) key2text_encode() argument
[all...]
H A Dencode_key2blob.c55 static int key2blob_check_selection(int selection, int selection_mask) in key2blob_check_selection() argument
58 * The selections are kinda sorta "levels", i.e. each selection given in key2blob_check_selection()
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
110 * The selection is understood as a "level" rather than an exact set of
113 * the encoded public key itself, no matter if the selection bits include
114 * OSSL_KEYMGMT_SELECT_PARAMETERS or not. However, if the selection includes
129 static void *impl##2blob_import_object(void *ctx, int selection, \
133 ctx, selection, param
[all...]
H A Ddecode_msblob2key.c59 /* The selection that is passed to msblob2key_decode() */
60 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 in msblob2key_decode()
[all...]
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...]
/third_party/node/deps/openssl/openssl/providers/implementations/encode_decode/
H A Ddecode_msblob2key.c59 /* The selection that is passed to msblob2key_decode() */
60 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 in msblob2key_decode()
226 int selection = ctx->selection; msblob2key_export_object() local
[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 in dsa_to_text()
491 ec_to_text(BIO *out, const void *key, int selection) ec_to_text() argument
568 ecx_to_text(BIO *out, const void *key, int selection) ecx_to_text() argument
628 rsa_to_text(BIO *out, const void *key, int selection) rsa_to_text() argument
794 key2text_encode(void *vctx, const void *key, int selection, OSSL_CORE_BIO *cout, int (*key2text)(BIO *out, const void *key, int selection), OSSL_PASSPHRASE_CALLBACK *cb, void *cbarg) key2text_encode() argument
[all...]
H A Ddecode_pvk2key.c59 /* The selection that is passed to der2key_decode() */
60 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 in pvk2key_decode()
193 int selection = ctx->selection; 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
58 * The selections are kinda sorta "levels", i.e. each selection given in key2blob_check_selection()
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
110 * The selection is understood as a "level" rather than an exact set of
113 * the encoded public key itself, no matter if the selection bits include
114 * OSSL_KEYMGMT_SELECT_PARAMETERS or not. However, if the selection includes
129 static void *impl##2blob_import_object(void *ctx, int selection, \
133 ctx, selection, param
[all...]
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...]
/third_party/node/deps/openssl/openssl/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()
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()
96 evp_keymgmt_util_export_to_provider(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, int selection) evp_keymgmt_util_export_to_provider() argument
236 evp_keymgmt_util_find_operation_cache(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, int selection) evp_keymgmt_util_find_operation_cache() argument
255 evp_keymgmt_util_cache_keydata(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, void *keydata, int selection) evp_keymgmt_util_cache_keydata() argument
314 evp_keymgmt_util_fromdata(EVP_PKEY *target, EVP_KEYMGMT *keymgmt, int selection, const OSSL_PARAM params[]) evp_keymgmt_util_fromdata() argument
328 evp_keymgmt_util_has(EVP_PKEY *pk, int selection) evp_keymgmt_util_has() argument
350 evp_keymgmt_util_match(EVP_PKEY *pk1, EVP_PKEY *pk2, int selection) evp_keymgmt_util_match() argument
444 evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection) evp_keymgmt_util_copy() argument
[all...]
/third_party/openssl/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()
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()
96 evp_keymgmt_util_export_to_provider(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, int selection) evp_keymgmt_util_export_to_provider() argument
236 evp_keymgmt_util_find_operation_cache(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, int selection) evp_keymgmt_util_find_operation_cache() argument
255 evp_keymgmt_util_cache_keydata(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, void *keydata, int selection) evp_keymgmt_util_cache_keydata() argument
314 evp_keymgmt_util_fromdata(EVP_PKEY *target, EVP_KEYMGMT *keymgmt, int selection, const OSSL_PARAM params[]) evp_keymgmt_util_fromdata() argument
328 evp_keymgmt_util_has(EVP_PKEY *pk, int selection) evp_keymgmt_util_has() argument
350 evp_keymgmt_util_match(EVP_PKEY *pk1, EVP_PKEY *pk2, int selection) evp_keymgmt_util_match() argument
444 evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection) evp_keymgmt_util_copy() argument
[all...]
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
H A DDumbTextComponent.java53 private Selection selection = new Selection(); field in DumbTextComponent
189 int start = selection.getStart(); in keyPressed()
190 int end = selection.getEnd(); in keyPressed()
228 tempSelection.set(selection); in keyPressed()
234 tempSelection.set(selection); in keyPressed()
240 tempSelection.set(selection); in keyPressed()
249 tempSelection.set(selection); in keyPressed()
260 start = selection.getStart(); in keyPressed()
261 end = selection.getEnd(); in keyPressed()
277 contents.substring(selection in copy()
[all...]
/third_party/openssl/test/
H A Dendecoder_legacy_test.c304 EVP_PKEY *provided_pkey, int selection, in test_protected_PEM()
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()
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()
455 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_DER()
472 keytype, selection, in test_DER()
530 int selection in test_key() local
298 test_protected_PEM(const char *keytype, int evp_type, const void *legacy_key, PEM_write_bio_of_void_protected *pem_write_bio, PEM_read_bio_of_void *pem_read_bio, EVP_PKEY_eq_fn *evp_pkey_eq, EVP_PKEY_print_fn *evp_pkey_print, EVP_PKEY *provided_pkey, int selection, const char *structure) test_protected_PEM() argument
366 test_unprotected_PEM(const char *keytype, int evp_type, const void *legacy_key, PEM_write_bio_of_void_unprotected *pem_write_bio, PEM_read_bio_of_void *pem_read_bio, EVP_PKEY_eq_fn *evp_pkey_eq, EVP_PKEY_print_fn *evp_pkey_print, EVP_PKEY *provided_pkey, int selection, const char *structure) test_unprotected_PEM() argument
433 test_DER(const char *keytype, int evp_type, const void *legacy_key, i2d_of_void *i2d, d2i_of_void *d2i, EVP_PKEY_eq_fn *evp_pkey_eq, EVP_PKEY_print_fn *evp_pkey_print, EVP_PKEY *provided_pkey, int selection, const char *structure) test_DER() argument
548 int selection = test_key() local
568 int selection = OSSL_KEYMGMT_SELECT_ALL_PARAMETERS; test_key() local
587 int selection = test_key() local
605 int selection = OSSL_KEYMGMT_SELECT_ALL; test_key() local
623 int selection = test_key() local
643 int selection = OSSL_KEYMGMT_SELECT_ALL_PARAMETERS; test_key() local
660 int selection = test_key() local
[all...]

Completed in 234 milliseconds

12345678