Home
last modified time | relevance | path

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

123

/openssl/providers/implementations/encode_decode/
H A Ddecode_der2key.c616 keytype##_free
628 keytype##_free
640 keytype##_free
652 keytype##_free
664 keytype##_free
677 keytype##_free
689 keytype##_free
701 keytype##_free
713 keytype##_free
725 keytype##_free
[all …]
H A Ddecode_msblob2key.c257 #define IMPLEMENT_MSBLOB(KEYTYPE, keytype) \ argument
258 static const struct keytype_desc_st mstype##2##keytype##_desc = { \
260 ossl_##keytype##_keymgmt_functions, \
261 keytype##_decode_private_key, \
262 keytype##_decode_public_key, \
263 keytype##_adjust, \
264 keytype##_free \
266 static OSSL_FUNC_decoder_newctx_fn msblob2##keytype##_newctx; \
267 static void *msblob2##keytype##_newctx(void *provctx) \
269 return msblob2key_newctx(provctx, &mstype##2##keytype##_desc); \
[all …]
H A Ddecode_pvk2key.c251 #define IMPLEMENT_MS(KEYTYPE, keytype) \ argument
253 pvk2##keytype##_desc = { \
255 ossl_##keytype##_keymgmt_functions, \
256 keytype##_private_key_bio, \
257 keytype##_adjust, \
258 keytype##_free \
260 static OSSL_FUNC_decoder_newctx_fn pvk2##keytype##_newctx; \
261 static void *pvk2##keytype##_newctx(void *provctx) \
263 return pvk2key_newctx(provctx, &pvk2##keytype##_desc); \
266 ossl_##pvk_to_##keytype##_decoder_functions[] = { \
[all …]
H A Ddecode_epki2pki.c157 char keytype[OSSL_MAX_NAME_SIZE]; in epki2pki_decode() local
161 OBJ_obj2txt(keytype, sizeof(keytype), alg->algorithm, 0); in epki2pki_decode()
164 keytype, 0); in epki2pki_decode()
/openssl/crypto/asn1/
H A Dd2i_pr.c28 d2i_PrivateKey_decoder(int keytype, EVP_PKEY **a, const unsigned char **pp, in d2i_PrivateKey_decoder() argument
43 if (keytype != EVP_PKEY_NONE) { in d2i_PrivateKey_decoder()
44 key_name = evp_pkey_type2name(keytype); in d2i_PrivateKey_decoder()
91 ossl_d2i_PrivateKey_legacy(int keytype, EVP_PKEY **a, const unsigned char **pp, in ossl_d2i_PrivateKey_legacy() argument
110 if (!EVP_PKEY_set_type(ret, keytype)) { in ossl_d2i_PrivateKey_legacy()
136 if (EVP_PKEY_type(keytype) != EVP_PKEY_get_base_id(ret)) in ossl_d2i_PrivateKey_legacy()
162 ret = d2i_PrivateKey_decoder(keytype, a, pp, length, libctx, propq); in d2i_PrivateKey_ex()
183 int keytype; in d2i_AutoPrivateKey_legacy() local
198 keytype = EVP_PKEY_DSA; in d2i_AutoPrivateKey_legacy()
200 keytype = EVP_PKEY_EC; in d2i_AutoPrivateKey_legacy()
[all …]
/openssl/test/
H 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 …]
H A Devp_pkey_dhkem_test.c399 int keytype = tstid >= TEST_KEM_ENCAP_DECAP; in test_nopublic() local
400 const TEST_ENCAPDATA *t = &ec_encapdata[keytype]; in test_nopublic()
401 int expected = (keytype == TEST_KEYTYPE_X25519); in test_nopublic()
433 int keytype = tstid >= TEST_KEM_ENCAP_DECAP; in test_noauthpublic() local
434 const TEST_ENCAPDATA *t = &ec_encapdata[keytype]; in test_noauthpublic()
435 EVP_PKEY_CTX *ctx = rctx[keytype]; in test_noauthpublic()
436 int expected = (keytype == TEST_KEYTYPE_X25519); in test_noauthpublic()
H A Dtls-provider.c2479 #define DO_PrivateKeyInfo(keytype) \ argument
2491 #define DO_SubjectPublicKeyInfo(keytype) \ argument
2520 #define MAKE_DECODER(keytype_name, keytype, type, kind) \ argument
2521 static struct keytype_desc_st kind##_##keytype##_desc = \
2522 { keytype_name, xor_##keytype##_keymgmt_functions, \
2523 DO_##kind(keytype) }; \
2525 static OSSL_FUNC_decoder_newctx_fn kind##_der2##keytype##_newctx; \
2527 static void *kind##_der2##keytype##_newctx(void *provctx) \
2531 static int kind##_der2##keytype##_does_selection(void *provctx, \
2535 &kind##_##keytype##_desc); \
[all …]
/openssl/crypto/encode_decode/
H A Ddecoder_pkey.c314 if (data->keytype == NULL) in check_keymgmt()
395 keytype != NULL ? keytype : "", in ossl_decoder_ctx_setup_for_pkey()
440 collect_data.keytype = keytype; in ossl_decoder_ctx_setup_for_pkey()
591 char *keytype; member
610 OPENSSL_free(entry->keytype); in decoder_cache_entry_free()
630 + (cache->keytype == NULL in decoder_cache_entry_hash()
665 cmp = nullstrcmp(a->keytype, b->keytype, 1); in decoder_cache_entry_cmp()
767 cacheent.keytype = (char *)keytype; in OSSL_DECODER_CTX_new_for_pkey()
833 if (keytype != NULL) { in OSSL_DECODER_CTX_new_for_pkey()
834 newcache->keytype = OPENSSL_strdup(keytype); in OSSL_DECODER_CTX_new_for_pkey()
[all …]
/openssl/crypto/evp/
H A Dpmeth_lib.c41 int keytype, int optype,
179 if (keytype != NULL) { in int_ctx_new()
180 id = evp_pkey_name2type(keytype); in int_ctx_new()
209 keytype = NULL; in int_ctx_new()
211 keytype = OBJ_nid2sn(id); in int_ctx_new()
246 if (e == NULL && app_pmeth == NULL && keytype != NULL) { in int_ctx_new()
318 ret->keytype = keytype; in int_ctx_new()
469 rctx->keytype = pctx->keytype; in EVP_PKEY_CTX_dup()
660 return EVP_KEYMGMT_is_a(ctx->keymgmt, keytype); in EVP_PKEY_CTX_is_a()
1322 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in evp_pkey_ctx_ctrl_int()
[all …]
H A Devp_pkey.c78 char keytype[OSSL_MAX_NAME_SIZE]; in EVP_PKCS82PKEY_ex() local
82 || !OBJ_obj2txt(keytype, sizeof(keytype), algoid, 0)) in EVP_PKCS82PKEY_ex()
93 keytype, selection, libctx, propq); in EVP_PKCS82PKEY_ex()
H A Dec_ctrl.c286 int keytype = nid == EVP_PKEY_SM2 ? EVP_PKEY_SM2 : EVP_PKEY_EC; in EVP_PKEY_CTX_set_ec_paramgen_curve_nid() local
288 return EVP_PKEY_CTX_ctrl(ctx, keytype, EVP_PKEY_OP_TYPE_GEN, in EVP_PKEY_CTX_set_ec_paramgen_curve_nid()
H A Dp_lib.c498 const char *keytype, in EVP_PKEY_new_raw_private_key_ex() argument
502 return new_raw_key_int(libctx, keytype, propq, EVP_PKEY_NONE, NULL, priv, in EVP_PKEY_new_raw_private_key_ex()
514 const char *keytype, const char *propq, in EVP_PKEY_new_raw_public_key_ex() argument
517 return new_raw_key_int(libctx, keytype, propq, EVP_PKEY_NONE, NULL, pub, in EVP_PKEY_new_raw_public_key_ex()
2034 const char *keytype = NULL; in evp_pkey_copy_downgraded() local
2036 keytype = EVP_KEYMGMT_get0_name(keymgmt); in evp_pkey_copy_downgraded()
2047 keytype); in evp_pkey_copy_downgraded()
2053 keytype = OBJ_nid2sn(type); in evp_pkey_copy_downgraded()
2073 "key type = %s", keytype); in evp_pkey_copy_downgraded()
2102 "key type = %s", keytype); in evp_pkey_copy_downgraded()
/openssl/crypto/pkcs12/
H A Dp12_crt.c37 int iter, int mac_iter, int keytype, in PKCS12_create_ex2() argument
119 bag = PKCS12_add_key_ex(&bags, pkey, keytype, iter, nid_key, pass, in PKCS12_create_ex2()
176 int mac_iter, int keytype, in PKCS12_create_ex() argument
180 iter, mac_iter, keytype, ctx, propq, in PKCS12_create_ex()
186 int mac_iter, int keytype) in PKCS12_create() argument
189 iter, mac_iter, keytype, NULL, NULL); in PKCS12_create()
/openssl/doc/man3/
H 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,
H 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,
23 int iter, int mac_iter, int keytype,
39 I<keytype> is the type of key.
54 The parameters I<nid_key>, I<nid_cert>, I<iter>, I<mac_iter> and I<keytype>
67 I<keytype> adds a flag to the store private key. This is a non standard extension
H 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.
/openssl/apps/
H A Ddhparam.c247 const char *keytype = "DH"; in dhparam_main() local
271 ? keytype : NULL, in dhparam_main()
278 && strcmp(keytype, "DH") == 0) { in dhparam_main()
287 keytype = "DHX"; in dhparam_main()
H A Dreq.c1493 const char *keytype = NULL; in set_keygen_ctx() local
1504 keytype = "RSA"; in set_keygen_ctx()
1508 keytype = "RSA"; in set_keygen_ctx()
1528 keytype = gstr; in set_keygen_ctx()
1572 if (keytype == NULL) { in set_keygen_ctx()
1573 keytype = EVP_PKEY_get0_type_name(param); in set_keygen_ctx()
1574 if (keytype == NULL) { in set_keygen_ctx()
1583 *pkeytype = OPENSSL_strndup(keytype, keytypelen); in set_keygen_ctx()
1585 *pkeytype = OPENSSL_strdup(keytype); in set_keygen_ctx()
H A Dpkcs12.c169 int export_pkcs12 = 0, options = 0, chain = 0, twopass = 0, keytype = 0; in pkcs12_main() local
211 keytype = KEY_EX; in pkcs12_main()
214 keytype = KEY_SIG; in pkcs12_main()
433 if (keytype == KEY_EX) in pkcs12_main()
435 if (keytype == KEY_SIG) in pkcs12_main()
695 key_pbe, cert_pbe, iter, -1, keytype, in pkcs12_main()
/openssl/doc/man7/
H 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)>.
H A DEVP_KEM-EC.pod6 - EVP_KEM EC keytype and algorithm support
10 The B<EC> keytype and its parameters are described in L<EVP_PKEY-EC(7)>.
H A DEVP_KEM-X25519.pod6 - EVP_KEM X25519 and EVP_KEM X448 keytype and algorithm support
10 The B<X25519> and <X448> keytype and its parameters are described in
/openssl/crypto/rsa/
H A Drsa_lib.c963 int keytype, int optype, in int_set_rsa_md_name() argument
977 switch (keytype) { in int_set_rsa_md_name()
984 if (!EVP_PKEY_CTX_is_a(ctx, evp_pkey_type2name(keytype))) in int_set_rsa_md_name()
1003 int keytype, int optype, in int_get_rsa_md_name() argument
1017 switch (keytype) { in int_get_rsa_md_name()
1024 if (!EVP_PKEY_CTX_is_a(ctx, evp_pkey_type2name(keytype))) in int_get_rsa_md_name()
/openssl/include/internal/
H A Dhpke_util.h33 const char *keytype; /* string form of algtype "EC"/"X25519"/"X448" */ member

Completed in 62 milliseconds

123