/freebsd/crypto/openssl/providers/implementations/keymgmt/ |
H A D | dsa_kmgmt.c | 56 int selection; member 130 static int dsa_has(const void *keydata, int selection) in dsa_has() argument 137 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_has() 140 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_has() 142 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_has() 144 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dsa_has() 149 static int dsa_match(const void *keydata1, const void *keydata2, int selection) in dsa_match() argument 158 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dsa_match() 161 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dsa_match() 171 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_match() [all …]
|
H A D | rsa_kmgmt.c | 115 static int rsa_has(const void *keydata, int selection) in rsa_has() argument 122 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_has() 126 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in rsa_has() 128 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in rsa_has() 130 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in rsa_has() 135 static int rsa_match(const void *keydata1, const void *keydata2, int selection) in rsa_match() argument 146 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in rsa_match() 149 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in rsa_match() 159 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in rsa_match() 173 static int rsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in rsa_import() argument [all …]
|
H A D | ecx_kmgmt.c | 80 int selection; member 122 static int ecx_has(const void *keydata, int selection) in ecx_has() argument 134 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ecx_has() 137 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ecx_has() 143 static int ecx_match(const void *keydata1, const void *keydata2, int selection) in ecx_match() argument 152 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ecx_match() 154 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match() 157 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ecx_match() 172 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ecx_match() 191 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() argument [all …]
|
H A D | dh_kmgmt.c | 57 int selection; member 129 static int dh_has(const void *keydata, int selection) in dh_has() argument 136 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_has() 139 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_has() 141 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_has() 143 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_has() 148 static int dh_match(const void *keydata1, const void *keydata2, int selection) in dh_match() argument 157 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_match() 160 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dh_match() 170 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_match() [all …]
|
H A D | ec_kmgmt.c | 304 int ec_has(const void *keydata, int selection) in ec_has() argument 311 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in ec_has() 314 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in ec_has() 316 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_has() 318 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_has() 328 static int ec_match(const void *keydata1, const void *keydata2, int selection) in ec_match() argument 344 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in ec_match() 347 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ec_match() 350 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in ec_match() 360 && (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in ec_match() [all …]
|
H A D | mac_legacy_kmgmt.c | 58 int selection; member 138 static int mac_has(const void *keydata, int selection) in mac_has() argument 151 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_has() 157 static int mac_match(const void *keydata1, const void *keydata2, int selection) in mac_match() argument 166 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in mac_match() 231 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() argument 238 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_import() 273 static int mac_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in mac_export() argument 284 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_export() 291 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in mac_export() [all …]
|
/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() 238 evp_keymgmt_util_find_operation_cache(EVP_PKEY * pk,EVP_KEYMGMT * keymgmt,int selection) evp_keymgmt_util_find_operation_cache() argument 256 evp_keymgmt_util_cache_keydata(EVP_PKEY * pk,EVP_KEYMGMT * keymgmt,void * keydata,int selection) evp_keymgmt_util_cache_keydata() argument 315 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...] |
H A D | keymgmt_meth.c | 330 void *evp_keymgmt_gen_init(const EVP_KEYMGMT *keymgmt, int selection, in evp_keymgmt_gen_init() argument 337 return keymgmt->gen_init(provctx, selection, params); in evp_keymgmt_gen_init() 432 int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keydata, int selection) in evp_keymgmt_has() argument 435 return keymgmt->has(keydata, selection); in evp_keymgmt_has() 439 int selection, int checktype) in evp_keymgmt_validate() argument 444 return keymgmt->validate(keydata, selection, checktype); in evp_keymgmt_validate() 449 int selection) in evp_keymgmt_match() argument 454 return keymgmt->match(keydata1, keydata2, selection); in evp_keymgmt_match() 458 int selection, const OSSL_PARAM params[]) in evp_keymgmt_import() argument 462 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import() [all …]
|
/freebsd/crypto/openssl/providers/implementations/encode_decode/ |
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 in msblob2key_does_selection() 94 static int msblob2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in msblob2key_decode() argument 122 ctx->selection = selection; in msblob2key_decode() 145 if ((selection == 0 in msblob2key_decode() 146 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in msblob2key_decode() 156 if (selection != 0 && key == NULL) in msblob2key_decode() 159 if (key == NULL && (selection == 0 in msblob2key_decode() [all …]
|
H A D | decode_pvk2key.c | 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 & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_decode() 136 if (selection != 0 && key == NULL) in pvk2key_decode() 193 int selection = ctx->selection; in pvk2key_export_object() local [all …]
|
H A D | encode_key2text.c | 217 static int dh_to_text(BIO *out, const void *key, int selection) in dh_to_text() argument 231 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_to_text() 233 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dh_to_text() 235 else if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) in dh_to_text() 238 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_to_text() 245 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in dh_to_text() 252 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0) { in dh_to_text() 293 static int dsa_to_text(BIO *out, const void *key, int selection) in dsa_to_text() argument 306 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text() 308 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in dsa_to_text() [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 | 112 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() argument 114 return (selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0; in key2ms_does_selection() 128 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() argument 137 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in key2msblob_encode() 139 else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in key2msblob_encode() 150 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode() argument 158 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in key2pvk_encode() 186 impl##2##output##_import_object(void *ctx, int selection, \ 190 ctx, selection, params); \ 199 int selection, \ [all …]
|
H A D | decode_der2key.c | 94 int selection; member 146 static int der2key_check_selection(int selection, in der2key_check_selection() argument 161 if (selection == 0) in der2key_check_selection() 165 int check1 = (selection & checks[i]) != 0; in der2key_check_selection() 180 static int der2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in der2key_decode() argument 191 ctx->selection = selection; in der2key_decode() 200 if (selection == 0) in der2key_decode() 201 selection = ctx->desc->selection_mask; in der2key_decode() 202 if ((selection & ctx->desc->selection_mask) == 0) { in der2key_decode() 214 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in der2key_decode() [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/crypto/encode_decode/ |
H A D | encoder_pkey.c | 115 && !encoder->does_selection(provctx, data->ctx->selection)) in collect_encoder() 156 int selection; member 171 encoder->import_object(encoderctx, construct_data->selection, params); in encoder_import_cb() 189 int selection = data->selection; in encoder_construct_pkey() local 191 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in encoder_construct_pkey() 192 selection |= OSSL_KEYMGMT_SELECT_PUBLIC_KEY; in encoder_construct_pkey() 195 if (!evp_keymgmt_export(pk->keymgmt, pk->keydata, selection, in encoder_construct_pkey() 228 int selection, in ossl_encoder_ctx_setup_for_pkey() argument 307 data->selection = selection; in ossl_encoder_ctx_setup_for_pkey() 322 int selection, in OSSL_ENCODER_CTX_new_for_pkey() argument [all …]
|
H A D | decoder_pkey.c | 59 int selection; member 153 if (data->selection == 0) in decoder_construct_pkey() 155 import_data.selection = OSSL_KEYMGMT_SELECT_ALL; in decoder_construct_pkey() 157 import_data.selection = data->selection; in decoder_construct_pkey() 251 && !decoder->does_selection(provctx, data->ctx->selection)) in collect_decoder() 347 process_data->selection = ctx->selection; in ossl_decoder_ctx_setup_for_pkey() 433 const char *keytype, int selection, in OSSL_DECODER_CTX_new_for_pkey() argument 446 (void *)ctx, keytype, selection); in OSSL_DECODER_CTX_new_for_pkey() 453 && OSSL_DECODER_CTX_set_selection(ctx, selection) in OSSL_DECODER_CTX_new_for_pkey()
|
/freebsd/crypto/openssl/test/ |
H A D | endecoder_legacy_test.c | 304 EVP_PKEY *provided_pkey, int selection, in test_protected_PEM() argument 322 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_protected_PEM() 338 keytype, selection, in test_protected_PEM() 372 EVP_PKEY *provided_pkey, int selection, in test_unprotected_PEM() argument 390 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_unprotected_PEM() 405 keytype, selection, in test_unprotected_PEM() 437 EVP_PKEY *provided_pkey, int selection, in test_DER() argument 455 OSSL_ENCODER_CTX_new_for_pkey(provided_pkey, selection, in test_DER() 472 keytype, selection, in test_DER() 530 int selection = OSSL_KEYMGMT_SELECT_ALL; in test_key() local [all …]
|
H A D | fake_rsaprov.c | 35 int selection; member 60 static int fake_rsa_keymgmt_has(const void *key, int selection) in fake_rsa_keymgmt_has() argument 63 has_selection = selection; in fake_rsa_keymgmt_has() 77 static int fake_rsa_keymgmt_import(void *keydata, int selection, in fake_rsa_keymgmt_import() argument 161 static int fake_rsa_keymgmt_export(void *keydata, int selection, in fake_rsa_keymgmt_export() argument 167 if (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) in fake_rsa_keymgmt_export() 190 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection) in fake_rsa_keymgmt_imptypes() argument 193 imptypes_selection = selection; in fake_rsa_keymgmt_imptypes() 204 static const OSSL_PARAM *fake_rsa_keymgmt_exptypes(int selection) in fake_rsa_keymgmt_exptypes() argument 207 exptypes_selection = selection; in fake_rsa_keymgmt_exptypes() [all …]
|
/freebsd/crypto/openssl/crypto/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/demos/encode/ |
H A D | ec_encode.c | 34 int selection = 0; in load_key() local 47 selection, in load_key() 104 int selection; in store_key() local 121 selection = (passphrase != NULL) in store_key() 125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
|
H A D | rsa_encode.c | 34 int selection = 0; in load_key() local 47 selection, in load_key() 104 int selection; in store_key() local 121 selection = (passphrase != NULL) in store_key() 125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
|
/freebsd/crypto/openssl/crypto/dsa/ |
H A D | dsa_backend.c | 82 DSA *ossl_dsa_dup(const DSA *dsa, int selection) in ossl_dsa_dup() argument 93 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0 in ossl_dsa_dup() 99 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0 in ossl_dsa_dup() 100 && ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) == 0 in ossl_dsa_dup() 104 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in ossl_dsa_dup() 105 && ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) == 0 in ossl_dsa_dup()
|
/freebsd/crypto/openssl/doc/internal/man3/ |
H A D | evp_keymgmt_util_export_to_provider.pod | 21 int evp_keymgmt_util_export(const EVP_PKEY *pk, int selection, 24 int selection); 27 int selection); 30 void *keydata, int selection); 33 int selection, const OSSL_PARAM params[]); 70 In all functions that take a I<selection> argument, the selection is used to 73 the selection.
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | evp.h | 592 int selection; member 773 int selection; member 780 int evp_keymgmt_util_export(const EVP_PKEY *pk, int selection, 783 int selection); 786 int selection); 789 void *keydata, int selection); 792 int selection, const OSSL_PARAM params[]); 793 int evp_keymgmt_util_has(EVP_PKEY *pk, int selection); 794 int evp_keymgmt_util_match(EVP_PKEY *pk1, EVP_PKEY *pk2, int selection); 795 int evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection); [all …]
|