| /freebsd/crypto/openssl/providers/implementations/encode_decode/ |
| H A D | encode_key2text.c | 42 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() argument 129 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text() 131 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_to_text() [all …]
|
| H A D | decode_msblob2key.c | 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, in msblob2key_decode() argument 121 ctx->selection = selection; in msblob2key_decode() 142 if ((selection == 0 in msblob2key_decode() 143 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in msblob2key_decode() 153 if (selection != 0 && key == NULL) in msblob2key_decode() 156 if (key == NULL && (selection == 0 || (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in msblob2key_decode() [all …]
|
| H A D | decode_pvk2key.c | 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 & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_decode() 163 if (selection != 0 && key == NULL) in pvk2key_decode() 216 int selection = ctx->selection; in pvk2key_export_object() local [all …]
|
| H A D | encode_key2blob.c | 55 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 D | encode_key2ms.c | 113 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() argument 115 return (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0; in key2ms_does_selection() 129 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() argument 138 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in key2msblob_encode() 140 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in key2msblob_encode() 151 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode() argument 159 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in key2pvk_encode() 187 impl##2##output##_import_object(void *ctx, int selection, \ 191 ctx, selection, params); \ 200 int selection, \ [all …]
|
| /freebsd/crypto/openssl/providers/implementations/keymgmt/ |
| H A D | dsa_kmgmt.c | 59 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() 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 & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dsa_match() 174 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_match() [all …]
|
| H A D | rsa_kmgmt.c | 119 static int rsa_has(const void *keydata, int selection) in rsa_has() 126 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_has() 127 return 1; /* the selection is not missing */ in rsa_has() 130 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in rsa_has() 132 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in rsa_has() 134 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) 139 static int rsa_match(const void *keydata1, const void *keydata2, int selection) in rsa_match() 150 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in rsa_match() 153 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in rsa_match() 163 && (selection in rsa_match() 115 rsa_has(const void * keydata,int selection) rsa_has() argument 135 rsa_match(const void * keydata1,const void * keydata2,int selection) rsa_match() argument 173 rsa_import(void * keydata,int selection,const OSSL_PARAM params[]) rsa_import() argument 199 rsa_export(void * keydata,int selection,OSSL_CALLBACK * param_callback,void * cbarg) rsa_export() argument 307 rsa_imexport_types(int selection) rsa_imexport_types() argument 314 rsa_import_types(int selection) rsa_import_types() argument 319 rsa_export_types(int selection) rsa_export_types() argument 386 rsa_validate(const void * keydata,int selection,int checktype) rsa_validate() argument 444 gen_init(void * provctx,int selection,int rsa_type,const OSSL_PARAM params[]) gen_init() argument 480 rsa_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) rsa_gen_init() argument 486 rsapss_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) rsapss_gen_init() argument 676 rsa_dup(const void * keydata_from,int selection) rsa_dup() argument [all...] |
| H A D | template_kmgmt.c | 68 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 & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in template_export() [all …]
|
| H A D | dh_kmgmt.c | 61 int selection; 133 static int dh_has(const void *keydata, int selection) in dh_has() 140 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_has() 141 return 1; /* the selection is not missing */ in dh_has() 143 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_has() 145 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_has() 147 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_has() 152 static int dh_match(const void *keydata1, const void *keydata2, int selection) in dh_match() 161 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_match() 164 if ((selection in dh_match() 60 int selection; global() member 132 dh_has(const void * keydata,int selection) dh_has() argument 151 dh_match(const void * keydata1,const void * keydata2,int selection) dh_match() argument 193 dh_import(void * keydata,int selection,const OSSL_PARAM params[]) dh_import() argument 216 dh_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) dh_export() argument 294 dh_imexport_types(int selection) dh_imexport_types() argument 305 dh_import_types(int selection) dh_import_types() argument 310 dh_export_types(int selection) dh_export_types() argument 412 dh_validate(const void * keydata,int selection,int checktype) dh_validate() argument 447 dh_gen_init_base(void * provctx,int selection,const OSSL_PARAM params[],int type) dh_gen_init_base() argument 487 dh_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) dh_gen_init() argument 493 dhx_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) dhx_gen_init() argument 841 dh_dup(const void * keydata_from,int selection) dh_dup() argument [all...] |
| H A D | ec_kmgmt.c | 300 static int ec_has(const void *keydata, int selection) in ec_has() argument 307 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in ec_has() 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_match() argument 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 & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ec_match() 356 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_match() [all …]
|
| H A D | ecx_kmgmt.c | 86 int selection; 152 static int ecx_has(const void *keydata, int selection) in ecx_has() 164 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ecx_match() 167 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ecx_match() 173 static int ecx_match(const void *keydata1, const void *keydata2, int selection) in ecx_match() 182 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ecx_match() 184 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match() 187 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_match() 202 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_match() 221 static int ecx_import(void *keydata, int selection, cons in ecx_import() 85 int selection; global() member 138 ecx_has(const void * keydata,int selection) ecx_has() argument 159 ecx_match(const void * keydata1,const void * keydata2,int selection) ecx_match() argument 207 ecx_import(void * keydata,int selection,const OSSL_PARAM params[]) ecx_import() argument 246 ecx_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) ecx_export() argument 290 ecx_imexport_types(int selection) ecx_imexport_types() argument 501 ecx_gen_init(void * provctx,int selection,const OSSL_PARAM params[],ECX_KEY_TYPE type,const char * algdesc) ecx_gen_init() argument 533 x25519_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) x25519_gen_init() argument 539 x448_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) x448_gen_init() argument 545 ed25519_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) ed25519_gen_init() argument 551 ed448_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) ed448_gen_init() argument 880 ecx_dup(const void * keydata_from,int selection) ecx_dup() argument 951 ecx_validate(const void * keydata,int selection,int type,size_t keylen) ecx_validate() argument 989 x25519_validate(const void * keydata,int selection,int checktype) x25519_validate() argument 994 x448_validate(const void * keydata,int selection,int checktype) x448_validate() argument 999 ed25519_validate(const void * keydata,int selection,int checktype) ed25519_validate() argument 1004 ed448_validate(const void * keydata,int selection,int checktype) ed448_validate() argument [all...] |
| H A D | slh_dsa_kmgmt.c | 68 static void *slh_dsa_dup_key(const void *keydata_from, int selection) in slh_dsa_dup_key() 71 return ossl_slh_dsa_key_dup(keydata_from, selection); in slh_dsa_dup_key() 75 static int slh_dsa_has(const void *keydata, int selection) in slh_dsa_has() 81 if ((selection & SLH_DSA_POSSIBLE_SELECTIONS) == 0) in slh_dsa_has() 82 return 1; /* the selection is not missing */ in slh_dsa_has() 84 return ossl_slh_dsa_key_has(key, selection); in slh_dsa_has() 87 static int slh_dsa_match(const void *keydata1, const void *keydata2, int selection) in slh_dsa_match() 96 return ossl_slh_dsa_key_equal(key1, key2, selection); in slh_dsa_match() 99 static int slh_dsa_validate(const void *key_data, int selection, int check_type) in slh_dsa_validate() 103 if (!slh_dsa_has(key, selection)) in slh_dsa_validate() 67 slh_dsa_dup_key(const void * keydata_from,int selection) slh_dsa_dup_key() argument 74 slh_dsa_has(const void * keydata,int selection) slh_dsa_has() argument 86 slh_dsa_match(const void * keydata1,const void * keydata2,int selection) slh_dsa_match() argument 98 slh_dsa_validate(const void * key_data,int selection,int check_type) slh_dsa_validate() argument 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 221 slh_dsa_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) slh_dsa_export() argument 273 slh_dsa_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) slh_dsa_gen_init() argument [all...] |
| H A D | mlx_kmgmt.c | 60 int selection; 102 static int mlx_kem_has(const void *vkey, int selection) in mlx_kem_has() 110 switch (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) { in mlx_kem_has() 120 static int mlx_kem_match(const void *vkey1, const void *vkey2, int selection) in mlx_kem_match() 134 if (!(selection & OSSL_KEYMGMT_SELECT_KEYPAIR)) in mlx_kem_match() 207 export_sub(EXPORT_CB_ARG *sub_arg, int selection, MLX_KEY *key) in export_sub() 238 if (!EVP_PKEY_export(pkey, selection, export_sub_cb, (void *)sub_arg)) in export_sub() 244 static int mlx_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb, in mlx_kem_export() 258 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in mlx_kem_export() 270 if ((selection in mlx_kem_export() 58 int selection; global() member 100 mlx_kem_has(const void * vkey,int selection) mlx_kem_has() argument 118 mlx_kem_match(const void * vkey1,const void * vkey2,int selection) mlx_kem_match() argument 206 export_sub(EXPORT_CB_ARG * sub_arg,int selection,MLX_KEY * key) export_sub() argument 243 mlx_kem_export(void * vkey,int selection,OSSL_CALLBACK * param_cb,void * cbarg) mlx_kem_export() argument 325 mlx_kem_imexport_types(int selection) mlx_kem_imexport_types() argument 340 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 463 mlx_kem_import(void * vkey,int selection,const OSSL_PARAM params[]) mlx_kem_import() argument 500 int selection; mlx_kem_get_params() local 661 mlx_kem_gen_init(int evp_type,OSSL_LIB_CTX * libctx,int selection,const OSSL_PARAM params[]) mlx_kem_gen_init() argument 739 mlx_kem_dup(const void * vkey,int selection) mlx_kem_dup() argument [all...] |
| H A D | mac_legacy_kmgmt.c | 59 int selection; 137 static int mac_has(const void *keydata, int selection) in mac_has() 150 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_has() 156 static int mac_match(const void *keydata1, const void *keydata2, int selection) in mac_match() 165 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in mac_match() 223 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() 230 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_import() 265 static int mac_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in mac_export() 276 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_export() 283 if ((selection in mac_export() 58 int selection; global() member 136 mac_has(const void * keydata,int selection) mac_has() argument 155 mac_match(const void * keydata1,const void * keydata2,int selection) mac_match() argument 222 mac_import(void * keydata,int selection,const OSSL_PARAM params[]) mac_import() argument 264 mac_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) mac_export() argument 302 mac_imexport_types(int selection) mac_imexport_types() argument 316 cmac_imexport_types(int selection) cmac_imexport_types() argument 372 mac_gen_init_common(void * provctx,int selection) mac_gen_init_common() argument 387 mac_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) mac_gen_init() argument 399 cmac_gen_init(void * provctx,int selection,const OSSL_PARAM params[]) cmac_gen_init() argument [all...] |
| H A D | ml_kem_kmgmt.c | 62 int selection; 190 static int ml_kem_has(const void *vkey, int selection) in ml_kem_has() 198 switch (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) { in ml_kem_has() 208 static int ml_kem_match(const void *vkey1, const void *vkey2, int selection) in ml_kem_match() 217 if (!(selection & OSSL_KEYMGMT_SELECT_KEYPAIR)) in ml_kem_match() 223 static int ml_kem_validate(const void *vkey, int selection, int check_type) in ml_kem_validate() 227 if (!ml_kem_has(key, selection)) in ml_kem_validate() 230 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_KEYPAIR) in ml_kem_validate() 235 static int ml_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb, in ml_kem_export() 249 if ((selection in ml_kem_export() 61 int selection; global() member 189 ml_kem_has(const void * vkey,int selection) ml_kem_has() argument 207 ml_kem_match(const void * vkey1,const void * vkey2,int selection) ml_kem_match() argument 222 ml_kem_validate(const void * vkey,int selection,int check_type) ml_kem_validate() argument 234 ml_kem_export(void * vkey,int selection,OSSL_CALLBACK * param_cb,void * cbarg) ml_kem_export() argument 334 ml_kem_imexport_types(int selection) ml_kem_imexport_types() argument 469 ml_kem_import(void * vkey,int selection,const OSSL_PARAM params[]) ml_kem_import() argument 724 ml_kem_gen_init(void * provctx,int selection,const OSSL_PARAM params[],int evp_type) ml_kem_gen_init() argument 815 ml_kem_dup(const void * vkey,int selection) ml_kem_dup() argument [all...] |
| H A D | ml_dsa_kmgmt.c | 144 static void *ml_dsa_dup_key(const void *keydata_from, int selection) in ml_dsa_dup_key() 147 return ossl_ml_dsa_key_dup(keydata_from, selection); in ml_dsa_dup_key() 151 static int ml_dsa_has(const void *keydata, int selection) in ml_dsa_has() 157 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ml_dsa_has() 158 return 1; /* the selection is not missing */ in ml_dsa_has() 160 return ossl_ml_dsa_key_has(key, selection); in ml_dsa_has() 163 static int ml_dsa_match(const void *keydata1, const void *keydata2, int selection) in ml_dsa_match() 172 return ossl_ml_dsa_key_equal(key1, key2, selection); in ml_dsa_match() 175 static int ml_dsa_validate(const void *key_data, int selection, int check_type) in ml_dsa_validate() 179 if (!ml_dsa_has(key, selection)) in ml_dsa_validate() 143 ml_dsa_dup_key(const void * keydata_from,int selection) ml_dsa_dup_key() argument 150 ml_dsa_has(const void * keydata,int selection) ml_dsa_has() argument 162 ml_dsa_match(const void * keydata1,const void * keydata2,int selection) ml_dsa_match() argument 174 ml_dsa_validate(const void * key_data,int selection,int check_type) ml_dsa_validate() argument 270 ml_dsa_import(void * keydata,int selection,const OSSL_PARAM params[]) ml_dsa_import() argument 303 ml_dsa_imexport_types(int selection) ml_dsa_imexport_types() argument 368 ml_dsa_export(void * keydata,int selection,OSSL_CALLBACK * param_cb,void * cbarg) ml_dsa_export() argument 448 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 D | keymgmt_lib.c | 50 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 int selection) in evp_keymgmt_util_find_operation_cache() argument [all …]
|
| H A D | keymgmt_meth.c | 385 void *evp_keymgmt_gen_init(const EVP_KEYMGMT *keymgmt, int selection, in evp_keymgmt_gen_init() argument 392 return keymgmt->gen_init(provctx, selection, params); in evp_keymgmt_gen_init() 517 int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keydata, int selection) in evp_keymgmt_has() argument 520 return keymgmt->has(keydata, selection); in evp_keymgmt_has() 524 int selection, int checktype) in evp_keymgmt_validate() argument 529 return keymgmt->validate(keydata, selection, checktype); in evp_keymgmt_validate() 534 int selection) in evp_keymgmt_match() argument 539 return keymgmt->match(keydata1, keydata2, selection); in evp_keymgmt_match() 543 int selection, const OSSL_PARAM params[]) in evp_keymgmt_import() argument 547 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | HTMLLogger.js | 15 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 D | endecoder_legacy_test.c | 306 EVP_PKEY *provided_pkey, int selection, in test_protected_PEM() argument 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() argument 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 = OSSL_KEYMGMT_SELECT_ALL; in test_key() local [all …]
|
| H A D | fake_rsaprov.c | 51 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, in fake_rsa_keymgmt_import() argument 174 static int fake_rsa_keymgmt_export(void *keydata, int selection, in fake_rsa_keymgmt_export() argument 180 if (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) in fake_rsa_keymgmt_export() 203 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection) in fake_rsa_keymgmt_imptypes() argument 206 imptypes_selection = selection; in fake_rsa_keymgmt_imptypes() 217 static const OSSL_PARAM *fake_rsa_keymgmt_exptypes(int selection) in fake_rsa_keymgmt_exptypes() argument 220 exptypes_selection = selection; in fake_rsa_keymgmt_exptypes() [all …]
|
| /freebsd/crypto/openssl/crypto/encode_decode/ |
| H A D | encoder_pkey.c | 115 && !encoder->does_selection(provctx, data->ctx->selection)) in collect_encoder() 157 int selection; member 171 …construct_data->constructed_obj = encoder->import_object(encoderctx, construct_data->selection, pa… in encoder_import_cb() 188 int selection = data->selection; in encoder_construct_pkey() local 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, in ossl_encoder_ctx_setup_for_pkey() argument 328 data->selection = selection; in ossl_encoder_ctx_setup_for_pkey() 343 int selection, in OSSL_ENCODER_CTX_new_for_pkey() argument [all …]
|
| H A D | decoder_pkey.c | 63 int selection; member 159 if (data->selection == 0) 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() 334 && !decoder->does_selection(provctx, data->ctx->selection)) in collect_decoder() 476 process_data->selection = ctx->selection; in ossl_decoder_ctx_setup_for_pkey() 596 dest->selection = src->selection; in ossl_decoder_ctx_for_pkey_dup() 643 process_data_dest->selection = process_data_src->selection; in ossl_decoder_ctx_for_pkey_dup() 669 int selection; member 714 hash ^= cache->selection; in decoder_cache_entry_hash() [all …]
|
| /freebsd/crypto/openssl/crypto/pem/ |
| H A D | pem_pkey.c | 37 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 …]
|
| /freebsd/crypto/openssl/crypto/slh_dsa/ |
| H A D | slh_dsa_key.c | 145 SLH_DSA_KEY *ossl_slh_dsa_key_dup(const SLH_DSA_KEY *src, int selection) in ossl_slh_dsa_key_dup() argument 164 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ossl_slh_dsa_key_dup() 168 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ossl_slh_dsa_key_dup() 189 int selection) in ossl_slh_dsa_key_equal() argument 197 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ossl_slh_dsa_key_equal() 198 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ossl_slh_dsa_key_equal() 206 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ossl_slh_dsa_key_equal() 220 int ossl_slh_dsa_key_has(const SLH_DSA_KEY *key, int selection) in ossl_slh_dsa_key_has() argument 222 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ossl_slh_dsa_key_has() 225 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in ossl_slh_dsa_key_has() [all …]
|