Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c42 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()
129 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text()
131 else if ((selection in dsa_to_text()
115 dsa_to_text(BIO * out,const void * key,int selection) dsa_to_text() argument
312 ec_to_text(BIO * out,const void * key,int selection) ec_to_text() argument
385 ecx_to_text(BIO * out,const void * key,int selection) ecx_to_text() argument
441 ml_kem_to_text(BIO * out,const void * vkey,int selection) ml_kem_to_text() argument
450 slh_dsa_to_text(BIO * out,const void * key,int selection) slh_dsa_to_text() argument
456 rsa_to_text(BIO * out,const void * key,int selection) rsa_to_text() argument
611 ml_dsa_to_text(BIO * out,const void * key,int selection) ml_dsa_to_text() argument
627 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
630 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_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 | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)) != 0) in msblob2key_does_selection()
93 static int msblob2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection,
121 ctx->selection = selection; in msblob2key_decode()
142 if ((selection == 0 in msblob2key_decode()
143 || (selection in msblob2key_decode()
94 msblob2key_decode(void * vctx,OSSL_CORE_BIO * cin,int selection,OSSL_CALLBACK * data_cb,void * data_cbarg,OSSL_PASSPHRASE_CALLBACK * pw_cb,void * pw_cbarg) msblob2key_decode() argument
224 int selection = ctx->selection; msblob2key_export_object() local
[all...]
H A Ddecode_pvk2key.c63 /* The selection that is passed to der2key_decode() */
64 int selection; member
108 static int pvk2key_does_selection(void *provctx, int selection) in pvk2key_does_selection() argument
110 if (selection == 0) in pvk2key_does_selection()
113 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_does_selection()
119 static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in pvk2key_decode() argument
131 ctx->selection = selection; in pvk2key_decode()
133 if ((selection == 0 in pvk2key_decode()
134 || (selection in pvk2key_decode()
220 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...]
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Ddsa_kmgmt.c59 int selection; member
133 static int dsa_has(const void *keydata, int selection) in dsa_has() argument
140 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_has()
141 return 1; /* the selection is not missing */ in dsa_has()
143 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_has()
145 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_has()
147 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_has()
152 static int dsa_match(const void *keydata1, const void *keydata2, int selection) in dsa_match() argument
161 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_match()
164 if ((selection in dsa_match()
194 dsa_import(void * keydata,int selection,const OSSL_PARAM params[]) dsa_import() argument
218 dsa_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) dsa_export() argument
294 dsa_imexport_types(int selection) dsa_imexport_types() argument
305 dsa_import_types(int selection) dsa_import_types() argument
310 dsa_export_types(int selection) dsa_export_types() argument
381 dsa_validate(const void * keydata,int selection,int checktype) dsa_validate() argument
408 dsa_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) dsa_gen_init() argument
716 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 Dtemplate_kmgmt.c68 int selection; member
96 static int template_has(const void *keydata, int selection) in template_has() argument
108 static int template_match(const void *keydata1, const void *keydata2, int selection) in template_match() argument
116 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in template_match()
119 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in template_match()
122 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in template_match()
126 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in template_match()
146 static int template_export(void *key, int selection, OSSL_CALLBACK *param_cb, in template_export() argument
157 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in template_export()
164 if ((selection in template_export()
215 template_import(void * key,int selection,const OSSL_PARAM params[]) template_import() argument
243 template_imexport_types(int selection) template_imexport_types() argument
333 template_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) template_gen_init() argument
397 template_dup(const void * vsrckey,int selection) template_dup() argument
[all...]
H A Ddh_kmgmt.c60 int selection; member
132 static int dh_has(const void *keydata, int selection) in dh_has() argument
139 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_has()
140 return 1; /* the selection is not missing */ in dh_has()
142 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_has()
144 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_has()
146 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_has()
151 static int dh_match(const void *keydata1, const void *keydata2, int selection) in dh_match() argument
160 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_match()
163 if ((selection in dh_match()
193 dh_import(void * keydata,int selection,const OSSL_PARAM params[]) dh_import() argument
217 dh_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) dh_export() argument
296 dh_imexport_types(int selection) dh_imexport_types() argument
307 dh_import_types(int selection) dh_import_types() argument
312 dh_export_types(int selection) dh_export_types() argument
414 dh_validate(const void * keydata,int selection,int checktype) dh_validate() argument
449 dh_gen_init_base(void * provctx,int selection,const OSSL_PARAM params[],int type) dh_gen_init_base() argument
490 dh_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) dh_gen_init() argument
496 dhx_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) dhx_gen_init() argument
847 dh_dup(const void * keydata_from,int selection) dh_dup() argument
[all...]
H A Dec_kmgmt.c300 static int ec_has(const void *keydata, int selection)
307 if ((selection & EC_POSSIBLE_SELECTIONS) == 0)
308 return 1; /* the selection is not missing */
310 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ec_has()
312 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_has()
314 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_has()
324 static int ec_match(const void *keydata1, const void *keydata2, int selection) in ec_has()
340 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_match()
343 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_match()
346 if ((selection in ec_match()
309 ec_has(const void * keydata,int selection) ec_has() argument
333 ec_match(const void * keydata1,const void * keydata2,int selection) ec_match() argument
395 common_import(void * keydata,int selection,const OSSL_PARAM params[],int sm2_wanted) common_import() argument
438 ec_import(void * keydata,int selection,const OSSL_PARAM params[]) ec_import() argument
446 sm2_import(void * keydata,int selection,const OSSL_PARAM params[]) sm2_import() argument
454 ec_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) ec_export() argument
562 ec_imexport_types(int selection) ec_imexport_types() argument
578 ec_import_types(int selection) ec_import_types() argument
584 ec_export_types(int selection) ec_export_types() argument
901 sm2_validate(const void * keydata,int selection,int checktype) sm2_validate() argument
940 ec_validate(const void * keydata,int selection,int checktype) ec_validate() argument
993 int selection; global() member
1001 ec_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) ec_gen_init() argument
1025 sm2_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) sm2_gen_init() argument
1466 ec_dup(const void * keydata_from,int selection) ec_dup() argument
[all...]
H A Decx_kmgmt.c84 int selection; member
137 static int ecx_has(const void *keydata, int selection) in ecx_has() argument
149 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ecx_has()
152 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ecx_has()
158 static int ecx_match(const void *keydata1, const void *keydata2, int selection) in ecx_match() argument
167 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ecx_match()
169 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match()
172 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_match()
187 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_match()
206 static int ecx_import(void *keydata, int selection, cons argument
245 ecx_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) ecx_export() argument
289 ecx_imexport_types(int selection) ecx_imexport_types() argument
499 ecx_gen_init(void * provctx,int selection,const OSSL_PARAM params[],ECX_KEY_TYPE type,const char * algdesc) ecx_gen_init() argument
531 x25519_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) x25519_gen_init() argument
537 x448_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) x448_gen_init() argument
543 ed25519_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) ed25519_gen_init() argument
549 ed448_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) ed448_gen_init() argument
879 ecx_dup(const void * keydata_from,int selection) ecx_dup() argument
950 ecx_validate(const void * keydata,int selection,int type,size_t keylen) ecx_validate() argument
988 x25519_validate(const void * keydata,int selection,int checktype) x25519_validate() argument
993 x448_validate(const void * keydata,int selection,int checktype) x448_validate() argument
998 ed25519_validate(const void * keydata,int selection,int checktype) ed25519_validate() argument
1003 ed448_validate(const void * keydata,int selection,int checktype) ed448_validate() argument
[all...]
H A Dslh_dsa_kmgmt.c67 static void *slh_dsa_dup_key(const void *keydata_from, int selection) in slh_dsa_dup_key() argument
70 return ossl_slh_dsa_key_dup(keydata_from, selection); in slh_dsa_dup_key()
74 static int slh_dsa_has(const void *keydata, int selection) in slh_dsa_has() argument
80 if ((selection & SLH_DSA_POSSIBLE_SELECTIONS) == 0) in slh_dsa_has()
81 return 1; /* the selection is not missing */ in slh_dsa_has()
83 return ossl_slh_dsa_key_has(key, selection); in slh_dsa_has()
86 static int slh_dsa_match(const void *keydata1, const void *keydata2, int selection) in slh_dsa_match() argument
95 return ossl_slh_dsa_key_equal(key1, key2, selection); in slh_dsa_match()
98 static int slh_dsa_validate(const void *key_data, int selection, int check_type) in slh_dsa_validate() argument
102 if (!slh_dsa_has(key, selection)) in slh_dsa_validate()
110 slh_dsa_import(void * keydata,int selection,const OSSL_PARAM params[]) slh_dsa_import() argument
133 slh_dsa_imexport_types(int selection) slh_dsa_imexport_types() argument
154 key_to_params(SLH_DSA_KEY * key,OSSL_PARAM_BLD * tmpl,int selection) key_to_params() argument
220 slh_dsa_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) slh_dsa_export() argument
266 slh_dsa_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) slh_dsa_gen_init() argument
[all...]
H A Dmlx_kmgmt.c58 int selection; member
100 static int mlx_kem_has(const void *vkey, int selection)
108 switch (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) { in mlx_kem_has()
118 static int mlx_kem_match(const void *vkey1, const void *vkey2, int selection)
132 if (!(selection & OSSL_KEYMGMT_SELECT_KEYPAIR)) in mlx_kem_match()
206 export_sub(EXPORT_CB_ARG *sub_arg, int selection, MLX_KEY *key)
237 if (!EVP_PKEY_export(pkey, selection, export_sub_cb, (void *)sub_arg)) in export_sub()
243 static int mlx_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb,
257 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in mlx_kem_export()
269 if ((selection in mlx_kem_export()
101 mlx_kem_has(const void * vkey,int selection) mlx_kem_has() argument
119 mlx_kem_match(const void * vkey1,const void * vkey2,int selection) mlx_kem_match() argument
207 export_sub(EXPORT_CB_ARG * sub_arg,int selection,MLX_KEY * key) export_sub() argument
244 mlx_kem_export(void * vkey,int selection,OSSL_CALLBACK * param_cb,void * cbarg) mlx_kem_export() argument
320 mlx_kem_imexport_types(int selection) mlx_kem_imexport_types() argument
335 load_slot(OSSL_LIB_CTX * libctx,const char * propq,const char * pname,int selection,MLX_KEY * key,int slot,const uint8_t * in,int mbytes,int xbytes) load_slot() argument
460 mlx_kem_import(void * vkey,int selection,const OSSL_PARAM params[]) mlx_kem_import() argument
497 int selection; mlx_kem_get_params() local
652 mlx_kem_gen_init(int evp_type,OSSL_LIB_CTX * libctx,int selection,const OSSL_PARAM params[]) mlx_kem_gen_init() argument
731 mlx_kem_dup(const void * vkey,int selection) mlx_kem_dup() argument
[all...]
H A Dmac_legacy_kmgmt.c58 int selection; member
136 static int mac_has(const void *keydata, int selection) in mac_has() argument
149 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_has()
155 static int mac_match(const void *keydata1, const void *keydata2, int selection) in mac_match() argument
164 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in mac_match()
222 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_key_fromdata()
229 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_import()
264 static int mac_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in key_to_params()
275 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_export()
282 if ((selection in mac_export()
225 mac_import(void * keydata,int selection,const OSSL_PARAM params[]) mac_import() argument
267 mac_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) mac_export() argument
305 mac_imexport_types(int selection) mac_imexport_types() argument
319 cmac_imexport_types(int selection) cmac_imexport_types() argument
375 mac_gen_init_common(void * provctx,int selection) mac_gen_init_common() argument
390 mac_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) mac_gen_init() argument
402 cmac_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) cmac_gen_init() argument
[all...]
H A Dml_kem_kmgmt.c60 int selection; member
189 static int ml_kem_has(const void *vkey, int selection) in ml_kem_has() argument
197 switch (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) { in ml_kem_has()
207 static int ml_kem_match(const void *vkey1, const void *vkey2, int selection) in ml_kem_match() argument
216 if (!(selection & OSSL_KEYMGMT_SELECT_KEYPAIR)) in ml_kem_match()
222 static int ml_kem_validate(const void *vkey, int selection, int check_type) in ml_kem_validate() argument
226 if (!ml_kem_has(key, selection)) in ml_kem_validate()
229 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_KEYPAIR) in ml_kem_validate()
234 static int ml_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb, in ml_kem_export() argument
248 if ((selection in ml_kem_export()
328 ml_kem_imexport_types(int selection) ml_kem_imexport_types() argument
461 ml_kem_import(void * vkey,int selection,const OSSL_PARAM params[]) ml_kem_import() argument
715 ml_kem_gen_init(void * provctx,int selection,const OSSL_PARAM params[],int evp_type) ml_kem_gen_init() argument
806 ml_kem_dup(const void * vkey,int selection) ml_kem_dup() argument
[all...]
H A Dml_dsa_kmgmt.c142 static void *ml_dsa_dup_key(const void *keydata_from, int selection) in ml_dsa_dup_key()
145 return ossl_ml_dsa_key_dup(keydata_from, selection); in ml_dsa_dup_key()
149 static int ml_dsa_has(const void *keydata, int selection) in ml_dsa_has()
155 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ml_dsa_has()
156 return 1; /* the selection is not missing */ in ml_dsa_has()
158 return ossl_ml_dsa_key_has(key, selection);
161 static int ml_dsa_match(const void *keydata1, const void *keydata2, int selection) in ml_dsa_match()
170 return ossl_ml_dsa_key_equal(key1, key2, selection);
173 static int ml_dsa_validate(const void *key_data, int selection, int check_type) in ml_dsa_validate()
177 if (!ml_dsa_has(key, selection)) in ml_dsa_validate()
140 ml_dsa_dup_key(const void * keydata_from,int selection) ml_dsa_dup_key() argument
147 ml_dsa_has(const void * keydata,int selection) ml_dsa_has() argument
159 ml_dsa_match(const void * keydata1,const void * keydata2,int selection) ml_dsa_match() argument
171 ml_dsa_validate(const void * key_data,int selection,int check_type) ml_dsa_validate() argument
267 ml_dsa_import(void * keydata,int selection,const OSSL_PARAM params[]) ml_dsa_import() argument
302 ml_dsa_imexport_types(int selection) ml_dsa_imexport_types() argument
367 ml_dsa_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) ml_dsa_export() argument
451 ml_dsa_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) ml_dsa_gen_init() argument
[all...]
/freebsd/crypto/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() 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()
234 evp_keymgmt_util_find_operation_cache(EVP_PKEY * pk,EVP_KEYMGMT * keymgmt,int selection) evp_keymgmt_util_find_operation_cache() argument
257 evp_keymgmt_util_cache_keydata(EVP_PKEY * pk,EVP_KEYMGMT * keymgmt,void * keydata,int selection) evp_keymgmt_util_cache_keydata() argument
316 evp_keymgmt_util_fromdata(EVP_PKEY * target,EVP_KEYMGMT * keymgmt,int selection,const OSSL_PARAM params[]) evp_keymgmt_util_fromdata() argument
329 evp_keymgmt_util_has(EVP_PKEY * pk,int selection) evp_keymgmt_util_has() argument
351 evp_keymgmt_util_match(EVP_PKEY * pk1,EVP_PKEY * pk2,int selection) evp_keymgmt_util_match() argument
445 evp_keymgmt_util_copy(EVP_PKEY * to,EVP_PKEY * from,int selection) evp_keymgmt_util_copy() argument
[all...]
H A Dkeymgmt_meth.c385 void *evp_keymgmt_gen_init(const EVP_KEYMGMT *keymgmt, int selection, in evp_keymgmt_newdata()
392 return keymgmt->gen_init(provctx, selection, params);
517 int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keydata, int selection) in EVP_KEYMGMT_settable_params()
520 return keymgmt->has(keydata, selection); in EVP_KEYMGMT_settable_params()
524 int selection, int checktype)
529 return keymgmt->validate(keydata, selection, checktype); in evp_keymgmt_has()
534 int selection) in evp_keymgmt_validate()
539 return keymgmt->match(keydata1, keydata2, selection);
543 int selection, const OSSL_PARAM params[]) in evp_keymgmt_match()
547 return keymgmt->import(keydata, selection, param in evp_keymgmt_match()
393 evp_keymgmt_gen_init(const EVP_KEYMGMT * keymgmt,int selection,const OSSL_PARAM params[]) evp_keymgmt_gen_init() argument
525 evp_keymgmt_has(const EVP_KEYMGMT * keymgmt,void * keydata,int selection) evp_keymgmt_has() argument
532 evp_keymgmt_validate(const EVP_KEYMGMT * keymgmt,void * keydata,int selection,int checktype) evp_keymgmt_validate() argument
542 evp_keymgmt_match(const EVP_KEYMGMT * keymgmt,const void * keydata1,const void * keydata2,int selection) evp_keymgmt_match() argument
551 evp_keymgmt_import(const EVP_KEYMGMT * keymgmt,void * keydata,int selection,const OSSL_PARAM params[]) evp_keymgmt_import() argument
559 evp_keymgmt_import_types(const EVP_KEYMGMT * keymgmt,int selection) evp_keymgmt_import_types() argument
571 evp_keymgmt_export(const EVP_KEYMGMT * keymgmt,void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) evp_keymgmt_export() argument
579 evp_keymgmt_export_types(const EVP_KEYMGMT * keymgmt,int selection) evp_keymgmt_export_types() argument
591 evp_keymgmt_dup(const EVP_KEYMGMT * keymgmt,const void * keydata_from,int selection) evp_keymgmt_dup() argument
[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.c306 EVP_PKEY *provided_pkey, int selection, in test_protected_PEM()
323 if (!TEST_ptr(ectx = 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
389 if (!TEST_ptr(ectx = OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_unprotected_PEM()
403 keytype, selection, in test_unprotected_PEM()
435 EVP_PKEY *provided_pkey, int selection, in test_DER()
452 if (!TEST_ptr(ectx = OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_DER()
468 keytype, selection, in test_DER()
527 int selection in test_key()
304 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
437 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
530 int selection = OSSL_KEYMGMT_SELECT_ALL; test_key() local
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...]
H A Dfake_rsaprov.c51 int selection; member
81 static int fake_rsa_keymgmt_has(const void *key, int selection) in fake_rsa_keymgmt_has() argument
84 has_selection = selection; in fake_rsa_keymgmt_has()
97 static int fake_rsa_keymgmt_import(void *keydata, int selection,
174 static int fake_rsa_keymgmt_export(void *keydata, int selection, in fake_rsa_key_params()
180 if (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) in fake_rsa_key_params()
203 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection)
206 imptypes_selection = selection;
217 static const OSSL_PARAM *fake_rsa_keymgmt_exptypes(int selection) in fake_rsa_keymgmt_imptypes()
220 exptypes_selection = selection;
98 fake_rsa_keymgmt_import(void * keydata,int selection,const OSSL_PARAM * p) fake_rsa_keymgmt_import() argument
182 fake_rsa_keymgmt_export(void * keydata,int selection,OSSL_CALLBACK * param_callback,void * cbarg) fake_rsa_keymgmt_export() argument
211 fake_rsa_keymgmt_imptypes(int selection) fake_rsa_keymgmt_imptypes() argument
225 fake_rsa_keymgmt_exptypes(int selection) fake_rsa_keymgmt_exptypes() argument
250 fake_rsa_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) fake_rsa_gen_init() argument
809 int selection; global() member
902 der2key_check_selection(int selection,const struct keytype_desc_st * desc) der2key_check_selection() argument
936 fake_rsa_der2key_decode(void * vctx,OSSL_CORE_BIO * cin,int selection,OSSL_CALLBACK * data_cb,void * data_cbarg,OSSL_PASSPHRASE_CALLBACK * pw_cb,void * pw_cbarg) fake_rsa_der2key_decode() argument
[all...]
/freebsd/crypto/openssl/crypto/encode_decode/
H A Dencoder_pkey.c115 && !encoder->does_selection(provctx, data->ctx->selection)) in collect_encoder()
157 int selection;
171 construct_data->constructed_obj = encoder->import_object(encoderctx, construct_data->selection, params); in encoder_import_cb()
188 int selection = data->selection; in encoder_construct_pkey()
190 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in encoder_construct_pkey()
191 selection |= OSSL_KEYMGMT_SELECT_PUBLIC_KEY; in encoder_construct_pkey()
194 if (!evp_keymgmt_export(pk->keymgmt, pk->keydata, selection, in encoder_construct_pkey()
229 int selection,
328 data->selection in ossl_encoder_ctx_setup_for_pkey()
159 int selection; global() member
192 int selection = data->selection; encoder_construct_pkey() local
234 ossl_encoder_ctx_setup_for_pkey(OSSL_ENCODER_CTX * ctx,const EVP_PKEY * pkey,int selection,const char * propquery) ossl_encoder_ctx_setup_for_pkey() argument
348 OSSL_ENCODER_CTX_new_for_pkey(const EVP_PKEY * pkey,int selection,const char * output_type,const char * output_struct,const char * propquery) OSSL_ENCODER_CTX_new_for_pkey() argument
[all...]
H A Ddecoder_pkey.c63 int selection; member
159 if (data->selection == 0) in decoder_construct_pkey()
160 /* import/export functions do not tolerate 0 selection */ in decoder_construct_pkey()
161 import_data.selection = OSSL_KEYMGMT_SELECT_ALL; in decoder_construct_pkey()
163 import_data.selection = data->selection; in decoder_construct_pkey()
329 * Either the caller didn't give us a selection, or if they did, the decoder in collect_decoder()
330 * must tell us if it supports that selection to be accepted. If the decoder in collect_decoder()
334 && !decoder->does_selection(provctx, data->ctx->selection)) in collect_decoder()
476 process_data->selection in ossl_decoder_ctx_setup_for_pkey()
660 int selection; global() member
812 OSSL_DECODER_CTX_new_for_pkey(EVP_PKEY ** pkey,const char * input_type,const char * input_structure,const char * keytype,int selection,OSSL_LIB_CTX * libctx,const char * propquery) OSSL_DECODER_CTX_new_for_pkey() argument
[all...]
/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()
181 } else if ((selection in pem_read_bio_key_legacy()
218 pem_read_bio_key(BIO * bp,EVP_PKEY ** x,pem_password_cb * cb,void * u,OSSL_LIB_CTX * libctx,const char * propq,int selection) pem_read_bio_key() argument
[all...]
/freebsd/crypto/openssl/crypto/slh_dsa/
H A Dslh_dsa_key.c142 * @param selection to select public and/or private components. Selecting the
146 SLH_DSA_KEY *ossl_slh_dsa_key_dup(const SLH_DSA_KEY *src, int selection) in ossl_slh_dsa_key_dup() argument
165 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ossl_slh_dsa_key_dup()
169 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ossl_slh_dsa_key_dup()
186 * @param selection to select public and/or private component comparison.
190 int selection) in ossl_slh_dsa_key_equal() argument
198 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ossl_slh_dsa_key_equal()
199 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ossl_slh_dsa_key_equal()
207 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ossl_slh_dsa_key_equal()
221 int ossl_slh_dsa_key_has(const SLH_DSA_KEY *key, int selection) in ossl_slh_dsa_key_has()
220 ossl_slh_dsa_key_has(const SLH_DSA_KEY * key,int selection) ossl_slh_dsa_key_has() argument
480 ossl_slh_dsa_key_to_text(BIO * out,const SLH_DSA_KEY * key,int selection) ossl_slh_dsa_key_to_text() argument
[all...]

12345678910>>...15