Home
last modified time | relevance | path

Searched refs:keytype (Results 1 – 25 of 48) sorted by relevance

12

/openssl-master/providers/implementations/encode_decode/
A Ddecode_der2key.c544 keytype##_free
556 keytype##_free
568 keytype##_free
580 keytype##_free
592 keytype##_free
605 keytype##_free
617 keytype##_free
629 keytype##_free
641 keytype##_free
653 keytype##_free
[all …]
A Ddecode_pvk2key.c206 #define IMPLEMENT_MS(KEYTYPE, keytype) \ argument
208 pvk2##keytype##_desc = { \
210 ossl_##keytype##_keymgmt_functions, \
211 keytype##_private_key_bio, \
212 keytype##_adjust, \
213 keytype##_free \
215 static OSSL_FUNC_decoder_newctx_fn pvk2##keytype##_newctx; \
216 static void *pvk2##keytype##_newctx(void *provctx) \
218 return pvk2key_newctx(provctx, &pvk2##keytype##_desc); \
221 ossl_##pvk_to_##keytype##_decoder_functions[] = { \
[all …]
A Ddecode_msblob2key.c240 #define IMPLEMENT_MSBLOB(KEYTYPE, keytype) \ argument
241 static const struct keytype_desc_st mstype##2##keytype##_desc = { \
243 ossl_##keytype##_keymgmt_functions, \
244 keytype##_decode_private_key, \
245 keytype##_decode_public_key, \
246 keytype##_adjust, \
247 keytype##_free \
249 static OSSL_FUNC_decoder_newctx_fn msblob2##keytype##_newctx; \
250 static void *msblob2##keytype##_newctx(void *provctx) \
252 return msblob2key_newctx(provctx, &mstype##2##keytype##_desc); \
[all …]
A Ddecode_epki2pki.c127 char keytype[OSSL_MAX_NAME_SIZE]; in epki2pki_decode() local
131 OBJ_obj2txt(keytype, sizeof(keytype), alg->algorithm, 0); in epki2pki_decode()
134 keytype, 0); in epki2pki_decode()
/openssl-master/crypto/asn1/
A Dd2i_pr.c27 d2i_PrivateKey_decoder(int keytype, EVP_PKEY **a, const unsigned char **pp, in d2i_PrivateKey_decoder() argument
38 if (keytype != EVP_PKEY_NONE) { in d2i_PrivateKey_decoder()
39 key_name = evp_pkey_type2name(keytype); in d2i_PrivateKey_decoder()
78 ossl_d2i_PrivateKey_legacy(int keytype, EVP_PKEY **a, const unsigned char **pp, in ossl_d2i_PrivateKey_legacy() argument
97 if (!EVP_PKEY_set_type(ret, keytype)) { in ossl_d2i_PrivateKey_legacy()
123 if (EVP_PKEY_type(keytype) != EVP_PKEY_get_base_id(ret)) in ossl_d2i_PrivateKey_legacy()
149 ret = d2i_PrivateKey_decoder(keytype, a, pp, length, libctx, propq); in d2i_PrivateKey_ex()
170 int keytype; in d2i_AutoPrivateKey_legacy() local
185 keytype = EVP_PKEY_DSA; in d2i_AutoPrivateKey_legacy()
187 keytype = EVP_PKEY_EC; in d2i_AutoPrivateKey_legacy()
[all …]
/openssl-master/test/
A Dendecoder_legacy_test.c73 const char *keytype; member
216 const char *keytype; member
280 if (strcmp(keys[i].keytype, type) == 0) in lookup_key()
433 static int test_DER(const char *keytype, int evp_type, in test_DER() argument
536 test_stanza->keytype, structure); in test_key()
556 test_stanza->keytype, structure); in test_key()
574 test_stanza->keytype, structure); in test_key()
593 test_stanza->keytype, structure); in test_key()
666 test_stanza->keytype, structure); in test_key()
698 if (strcmp(keys[i].keytype, "DH") == 0) { in OPT_TEST_DECLARE_USAGE()
[all …]
A Devp_extra_test.c539 const char *keytype; member
574 static EVP_PKEY *load_example_key(const char *keytype, in load_example_key() argument
580 OSSL_DECODER_CTX_new_for_pkey(&pkey, "DER", NULL, keytype, 0, in load_example_key()
734 static int test_EVP_PKEY_ffc_priv_pub(char *keytype) in test_EVP_PKEY_ffc_priv_pub() argument
778 if (!test_fromdata(keytype, OSSL_KEYMGMT_SELECT_PRIVATE_KEY, params)) in test_EVP_PKEY_ffc_priv_pub()
795 if (!test_fromdata(keytype, OSSL_KEYMGMT_SELECT_PUBLIC_KEY, params)) in test_EVP_PKEY_ffc_priv_pub()
814 if (!test_fromdata(keytype, EVP_PKEY_KEYPAIR, params)) in test_EVP_PKEY_ffc_priv_pub()
2826 const char *keytype = NULL; in test_pkey_ctx_fail_without_provider() local
2846 keytype = "RSA"; in test_pkey_ctx_fail_without_provider()
2850 keytype = "SM2"; in test_pkey_ctx_fail_without_provider()
[all …]
/openssl-master/crypto/encode_decode/
A Ddecoder_pkey.c304 EVP_PKEY **pkey, const char *keytype, in ossl_decoder_ctx_setup_for_pkey() argument
316 if (keytype != NULL in ossl_decoder_ctx_setup_for_pkey()
317 && (strcmp(keytype, "id-ecPublicKey") == 0 in ossl_decoder_ctx_setup_for_pkey()
318 || strcmp(keytype, "1.2.840.10045.2.1") == 0)) in ossl_decoder_ctx_setup_for_pkey()
325 keytype != NULL ? keytype : "", in ossl_decoder_ctx_setup_for_pkey()
326 keytype != NULL ? " keys" : "keys of any type", in ossl_decoder_ctx_setup_for_pkey()
362 if (keytype == NULL in ossl_decoder_ctx_setup_for_pkey()
363 || EVP_KEYMGMT_is_a(keymgmt, keytype) in ossl_decoder_ctx_setup_for_pkey()
430 const char *keytype, int selection, in OSSL_DECODER_CTX_new_for_pkey() argument
443 (void *)ctx, keytype, selection); in OSSL_DECODER_CTX_new_for_pkey()
[all …]
/openssl-master/crypto/evp/
A Dpmeth_lib.c147 *type = evp_pkey_name2type(keytype); in help_get_legacy_alg_type_from_keymgmt()
201 if (keytype != NULL) { in int_ctx_new()
202 id = evp_pkey_name2type(keytype); in int_ctx_new()
231 keytype = NULL; in int_ctx_new()
233 keytype = OBJ_nid2sn(id); in int_ctx_new()
267 if (e == NULL && app_pmeth == NULL && keytype != NULL) { in int_ctx_new()
341 ret->keytype = keytype; in int_ctx_new()
494 rctx->keytype = pctx->keytype; in EVP_PKEY_CTX_dup()
673 return EVP_KEYMGMT_is_a(ctx->keymgmt, keytype); in EVP_PKEY_CTX_is_a()
1315 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in evp_pkey_ctx_ctrl_int()
[all …]
A Dp_lib.c485 const char *keytype, in EVP_PKEY_new_raw_private_key_ex() argument
489 return new_raw_key_int(libctx, keytype, propq, EVP_PKEY_NONE, NULL, priv, in EVP_PKEY_new_raw_private_key_ex()
501 const char *keytype, const char *propq, in EVP_PKEY_new_raw_public_key_ex() argument
504 return new_raw_key_int(libctx, keytype, propq, EVP_PKEY_NONE, NULL, pub, in EVP_PKEY_new_raw_public_key_ex()
1985 const char *keytype = NULL; in evp_pkey_copy_downgraded() local
1987 keytype = EVP_KEYMGMT_get0_name(keymgmt); in evp_pkey_copy_downgraded()
1998 keytype); in evp_pkey_copy_downgraded()
2004 keytype = OBJ_nid2sn(type); in evp_pkey_copy_downgraded()
2024 "key type = %s", keytype); in evp_pkey_copy_downgraded()
2053 "key type = %s", keytype); in evp_pkey_copy_downgraded()
A Dctrl_params_translate.c2518 int keytype, int optype, in evp_pkey_ctx_ctrl_to_param() argument
2528 if (keytype == -1) in evp_pkey_ctx_ctrl_to_param()
2529 keytype = pctx->legacy_keytype; in evp_pkey_ctx_ctrl_to_param()
2531 tmpl.keytype1 = tmpl.keytype2 = keytype; in evp_pkey_ctx_ctrl_to_param()
2593 int keytype = pctx->legacy_keytype; in evp_pkey_ctx_ctrl_str_to_param() local
2599 tmpl.keytype1 = tmpl.keytype2 = keytype; in evp_pkey_ctx_ctrl_str_to_param()
2652 int keytype = pctx->legacy_keytype; in evp_pkey_ctx_setget_params_to_ctrl() local
2663 tmpl.keytype1 = tmpl.keytype2 = keytype; in evp_pkey_ctx_setget_params_to_ctrl()
2679 ret = EVP_PKEY_CTX_ctrl(pctx, keytype, optype, in evp_pkey_ctx_setget_params_to_ctrl()
/openssl-master/doc/man3/
A DPKCS12_create.pod13 int nid_key, int nid_cert, int iter, int mac_iter, int keytype);
16 int iter, int mac_iter, int keytype,
32 I<keytype> is the type of key.
39 The parameters I<nid_key>, I<nid_cert>, I<iter>, I<mac_iter> and I<keytype>
51 I<keytype> adds a flag to the store private key. This is a non standard extension
A DOSSL_DECODER_from_bio.pod56 const char *keytype = "RSA"; /* NULL for any key */
60 keytype,
81 const char *keytype = "EC"; /* NULL for any key */
87 keytype,
A DOSSL_DECODER_CTX_new_for_pkey.pod20 const char *keytype, int selection,
42 I<input_struct>, I<keytype> and I<selection> to specify what the input is
62 The search of decoder implementations can also be limited with I<keytype>
63 and I<selection>, which specifies the expected resulting keytype and contents.
65 find out the keytype and key contents on their own from the input they get.
A DEVP_PKEY_CTX_new.pod24 int EVP_PKEY_CTX_is_a(EVP_PKEY_CTX *ctx, const char *keytype);
58 EVP_PKEY_is_a() checks if the key type associated with I<ctx> is I<keytype>.
/openssl-master/apps/
A Ddhparam.c234 const char *keytype = "DH"; in dhparam_main() local
258 ? keytype : NULL, in dhparam_main()
265 && strcmp(keytype, "DH") == 0) { in dhparam_main()
274 keytype = "DHX"; in dhparam_main()
A Dreq.c1503 const char *keytype = NULL; in set_keygen_ctx() local
1514 keytype = "RSA"; in set_keygen_ctx()
1518 keytype = "RSA"; in set_keygen_ctx()
1538 keytype = gstr; in set_keygen_ctx()
1582 if (keytype == NULL) { in set_keygen_ctx()
1583 keytype = EVP_PKEY_get0_type_name(param); in set_keygen_ctx()
1584 if (keytype == NULL) { in set_keygen_ctx()
1593 *pkeytype = OPENSSL_strndup(keytype, keytypelen); in set_keygen_ctx()
1595 *pkeytype = OPENSSL_strdup(keytype); in set_keygen_ctx()
A Dpkcs12.c162 int export_pkcs12 = 0, options = 0, chain = 0, twopass = 0, keytype = 0; in pkcs12_main() local
201 keytype = KEY_EX; in pkcs12_main()
204 keytype = KEY_SIG; in pkcs12_main()
413 if (keytype == KEY_EX) in pkcs12_main()
415 if (keytype == KEY_SIG) in pkcs12_main()
668 key_pbe, cert_pbe, iter, -1, keytype, in pkcs12_main()
/openssl-master/crypto/pkcs12/
A Dp12_crt.c33 int iter, int mac_iter, int keytype, in PKCS12_create_ex() argument
88 bag = PKCS12_add_key_ex(&bags, pkey, keytype, iter, nid_key, pass, in PKCS12_create_ex()
136 int mac_iter, int keytype) in PKCS12_create() argument
139 iter, mac_iter, keytype, NULL, NULL); in PKCS12_create()
/openssl-master/doc/man7/
A DEVP_KEM-RSA.pod6 - EVP_KEM RSA keytype and algorithm support
10 The B<RSA> keytype and its parameters are described in L<EVP_PKEY-RSA(7)>.
A DEVP_PKEY-RSA.pod6 - EVP_PKEY RSA keytype and algorithm support
10 The B<RSA> keytype is implemented in OpenSSL's default and FIPS providers.
19 L<provider-keymgmt(7)/Common parameters>), the B<RSA> keytype implementation
/openssl-master/include/crypto/
A Ddecoder.h36 EVP_PKEY **pkey, const char *keytype,
/openssl-master/crypto/rsa/
A Drsa_lib.c880 int keytype, int optype, in int_set_rsa_md_name() argument
894 switch (keytype) { in int_set_rsa_md_name()
901 if (!EVP_PKEY_CTX_is_a(ctx, evp_pkey_type2name(keytype))) in int_set_rsa_md_name()
920 int keytype, int optype, in int_get_rsa_md_name() argument
934 switch (keytype) { in int_get_rsa_md_name()
941 if (!EVP_PKEY_CTX_is_a(ctx, evp_pkey_type2name(keytype))) in int_get_rsa_md_name()
/openssl-master/test/recipes/30-test_evp_data/
A Devppkey_ecx.txt79 Reason = operation not supported for this keytype
83 Reason = operation not supported for this keytype
156 Reason = operation not supported for this keytype
160 Reason = operation not supported for this keytype
/openssl-master/include/openssl/
A Ddecoder.h127 const char *keytype, int selection,

Completed in 57 milliseconds

12