/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() 199 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_import() 293 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in dsa_imexport_types() 300 return dsa_imexport_types(selection); in dsa_import_types() 305 return dsa_imexport_types(selection); in dsa_export_types() 382 if ((selection & DSA_POSSIBLE_SELECTIONS) == 0) in dsa_validate() 395 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dsa_validate() 411 gctx->selection = selection; in dsa_gen_init() [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() 183 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_import() 203 static int rsa_export(void *keydata, int selection, in rsa_export() argument 215 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_export() 322 return rsa_imexport_types(selection); in rsa_import_types() 327 return rsa_imexport_types(selection); in rsa_export_types() 400 if ((selection & RSA_POSSIBLE_SELECTIONS) == 0) in rsa_validate() 404 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in rsa_validate() [all …]
|
H A D | ecx_kmgmt.c | 80 int selection; member 122 static int ecx_has(const void *keydata, int selection) in ecx_has() argument 154 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_match() 200 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0) in ecx_import() 245 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) { in ecx_export() 271 static const OSSL_PARAM *ecx_imexport_types(int selection) in ecx_imexport_types() argument 273 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) in ecx_imexport_types() 472 static void *ecx_gen_init(void *provctx, int selection, in ecx_gen_init() argument 484 gctx->selection = selection; in ecx_gen_init() 499 static void *x448_gen_init(void *provctx, int selection, in x448_gen_init() 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() 198 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_import() 303 return dh_imexport_types(selection); in dh_import_types() 308 return dh_imexport_types(selection); in dh_export_types() 414 if ((selection & DH_POSSIBLE_SELECTIONS) == 0) in dh_validate() 435 if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) in dh_validate() 450 if ((selection & (OSSL_KEYMGMT_SELECT_KEYPAIR in dh_gen_init_base() 455 gctx->selection = selection; in dh_gen_init_base() [all …]
|
H A D | ec_kmgmt.c | 296 int ec_has(const void *keydata, int selection) in ec_has() argument 303 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in ec_has() 549 const OSSL_PARAM *ec_imexport_types(int selection) in ec_imexport_types() argument 565 const OSSL_PARAM *ec_import_types(int selection) in ec_import_types() argument 567 return ec_imexport_types(selection); in ec_import_types() 571 const OSSL_PARAM *ec_export_types(int selection) in ec_export_types() argument 573 return ec_imexport_types(selection); in ec_export_types() 898 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in sm2_validate() 937 if ((selection & EC_POSSIBLE_SELECTIONS) == 0) in ec_validate() 981 int selection; member [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 238 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0) in mac_import() 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 310 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in mac_imexport_types() 322 static const OSSL_PARAM *cmac_imexport_types(int selection) in cmac_imexport_types() argument 324 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in cmac_imexport_types() 388 gctx->selection = selection; in mac_gen_init_common() 393 static void *mac_gen_init(void *provctx, int selection, in mac_gen_init() argument [all …]
|
/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2text.c | 230 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dh_to_text() 237 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dh_to_text() 244 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dh_to_text() 305 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in dsa_to_text() 312 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) { in dsa_to_text() 319 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) { in dsa_to_text() 510 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in ec_to_text() 625 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in ecx_to_text() 628 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0 in ecx_to_text() 812 int selection), in key2text_encode() argument [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_msblob2key.c | 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 & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) in msblob2key_decode() 153 if (selection != 0 && key == NULL) in msblob2key_decode() 217 return export(keydata, ctx->selection, export_cb, export_cbarg); in msblob2key_export_object()
|
H A D | decode_pvk2key.c | 60 int selection; member 82 static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in pvk2key_decode() argument 94 ctx->selection = selection; in pvk2key_decode() 96 if ((selection == 0 in pvk2key_decode() 97 || (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) in pvk2key_decode() 125 if (selection != 0 && key == NULL) in pvk2key_decode() 185 return export(keydata, ctx->selection, export_cb, export_cbarg); in pvk2key_export_object()
|
H A D | decode_der2key.c | 93 int selection; member 142 static int der2key_check_selection(int selection, in der2key_check_selection() argument 157 if (selection == 0) in der2key_check_selection() 161 int check1 = (selection & checks[i]) != 0; in der2key_check_selection() 187 ctx->selection = selection; in der2key_decode() 196 if (selection == 0) in der2key_decode() 197 selection = ctx->desc->selection_mask; in der2key_decode() 198 if ((selection & ctx->desc->selection_mask) == 0) { in der2key_decode() 221 if (key == NULL && ctx->selection != 0) { in der2key_decode() 232 if (key == NULL && ctx->selection != 0) { in der2key_decode() [all …]
|
/openssl/crypto/evp/ |
H A D | keymgmt_meth.c | 327 return keymgmt->gen_init(provctx, selection, params); in evp_keymgmt_gen_init() 425 return keymgmt->has(keydata, selection); in evp_keymgmt_has() 429 int selection, int checktype) in evp_keymgmt_validate() argument 439 int selection) in evp_keymgmt_match() argument 444 return keymgmt->match(keydata1, keydata2, selection); in evp_keymgmt_match() 452 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import() 456 int selection) in evp_keymgmt_import_types() argument 460 return keymgmt->import_types(selection); in evp_keymgmt_import_types() 476 return keymgmt->export_types(selection); in evp_keymgmt_export_types() 480 int selection) in evp_keymgmt_dup() argument [all …]
|
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() 160 import_data.selection = OSSL_KEYMGMT_SELECT_ALL; in evp_keymgmt_util_export_to_provider() 316 || !evp_keymgmt_import(keymgmt, keydata, selection, params) in evp_keymgmt_util_fromdata() 324 int evp_keymgmt_util_has(EVP_PKEY *pk, int selection) in evp_keymgmt_util_has() argument 330 return evp_keymgmt_has(pk->keymgmt, pk->keydata, selection); in evp_keymgmt_util_has() 435 return evp_keymgmt_match(keymgmt1, keydata1, keydata2, selection); in evp_keymgmt_util_match() 460 selection); in evp_keymgmt_util_copy() 468 import_data.selection = selection; in evp_keymgmt_util_copy() [all …]
|
H A D | pmeth_gn.c | 363 int EVP_PKEY_fromdata(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey, int selection, in EVP_PKEY_fromdata() argument 385 keydata = evp_keymgmt_util_fromdata(*ppkey, ctx->keymgmt, selection, params); in EVP_PKEY_fromdata() 397 const OSSL_PARAM *EVP_PKEY_fromdata_settable(EVP_PKEY_CTX *ctx, int selection) in EVP_PKEY_fromdata_settable() argument 401 return evp_keymgmt_import_types(ctx->keymgmt, selection); in EVP_PKEY_fromdata_settable() 415 int EVP_PKEY_todata(const EVP_PKEY *pkey, int selection, OSSL_PARAM **params) in EVP_PKEY_todata() argument 419 return EVP_PKEY_export(pkey, selection, ossl_pkey_todata_cb, params); in EVP_PKEY_todata() 438 int EVP_PKEY_export(const EVP_PKEY *pkey, int selection, in EVP_PKEY_export() argument 460 return evp_keymgmt_util_export(pkey, selection, export_cb, export_cbarg); in EVP_PKEY_export()
|
/openssl/test/ |
H A D | endecoder_legacy_test.c | 437 EVP_PKEY *provided_pkey, int selection, in test_DER() argument 530 int selection = OSSL_KEYMGMT_SELECT_ALL; in test_key() local 548 int selection = in test_key() local 587 int selection = in test_key() local 605 int selection = OSSL_KEYMGMT_SELECT_ALL; in test_key() local 616 pkey, selection, structure)) in test_key() 623 int selection = in test_key() local 636 pkey, selection, structure)) in test_key() 653 pkey, selection, structure)) in test_key() 660 int selection = in test_key() local [all …]
|
H A D | fake_rsaprov.c | 50 static int fake_rsa_keymgmt_has(const void *key, int selection) in fake_rsa_keymgmt_has() argument 53 has_selection = selection; in fake_rsa_keymgmt_has() 67 static int fake_rsa_keymgmt_import(void *keydata, int selection, in fake_rsa_keymgmt_import() argument 90 static const OSSL_PARAM *fake_rsa_keymgmt_imptypes(int selection) in fake_rsa_keymgmt_imptypes() argument 93 imptypes_selection = selection; in fake_rsa_keymgmt_imptypes() 115 static void *fake_rsa_gen_init(void *provctx, int selection, in fake_rsa_gen_init() argument
|
/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() 191 if (!evp_keymgmt_export(pk->keymgmt, pk->keydata, data->selection, in encoder_construct_pkey() 224 int selection, in ossl_encoder_ctx_setup_for_pkey() argument 303 data->selection = selection; in ossl_encoder_ctx_setup_for_pkey() 318 int selection, in OSSL_ENCODER_CTX_new_for_pkey() argument 351 (void *)ctx, EVP_PKEY_get0_type_name(pkey), selection); in OSSL_ENCODER_CTX_new_for_pkey() 359 && OSSL_ENCODER_CTX_set_selection(ctx, selection) in OSSL_ENCODER_CTX_new_for_pkey() 360 && ossl_encoder_ctx_setup_for_pkey(ctx, pkey, selection, propquery) in OSSL_ENCODER_CTX_new_for_pkey()
|
H A D | decoder_pkey.c | 61 int selection; member 155 import_data.selection = data->selection; in decoder_construct_pkey() 279 && !decoder->does_selection(provctx, data->ctx->selection)) in collect_decoder() 414 process_data->selection = ctx->selection; in ossl_decoder_ctx_setup_for_pkey() 478 const char *keytype, int selection, in OSSL_DECODER_CTX_new_for_pkey() argument 491 (void *)ctx, keytype, selection); in OSSL_DECODER_CTX_new_for_pkey() 498 && OSSL_DECODER_CTX_set_selection(ctx, selection) in OSSL_DECODER_CTX_new_for_pkey()
|
/openssl/demos/encode/ |
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()
|
/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()
|
/openssl/doc/internal/man3/ |
H A D | evp_keymgmt_newdata.pod | 21 int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keyddata, int selection); 23 int selection); 26 int selection, const OSSL_PARAM params[]); 28 int selection); 30 int selection, OSSL_CALLBACK *param_cb, void *cbarg); 32 int selection);
|
/openssl/crypto/dh/ |
H A D | dh_backend.c | 145 DH *ossl_dh_dup(const DH *dh, int selection) in ossl_dh_dup() argument 157 if ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) != 0 in ossl_dh_dup() 163 if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0 in ossl_dh_dup() 164 && ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) == 0 in ossl_dh_dup() 168 if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0 in ossl_dh_dup() 169 && ((selection & OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS) == 0 in ossl_dh_dup()
|
/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() 78 if (!evp_keymgmt_util_has(pkey, selection)) { in pem_read_bio_key_decoder() 99 int selection) in pem_read_bio_key_legacy() argument 109 if (selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) { in pem_read_bio_key_legacy() 119 if (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) in pem_read_bio_key_legacy() 177 } else if (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) { in pem_read_bio_key_legacy() 210 int selection) in pem_read_bio_key() argument 234 libctx, propq, selection); in pem_read_bio_key() 240 selection)) == NULL)) in pem_read_bio_key()
|
/openssl/doc/man3/ |
H A D | SSL_get_certificate.pod | 28 If it is called before certificate selection has occurred, it returns the most 33 After certificate selection has occurred, it returns the certificate which was 39 Certificate selection occurs during the handshake; therefore, the value returned 42 selection occurs. 46 selection, where it can be used to examine a server's chosen certificate, for
|