Home
last modified time | relevance | path

Searched refs:EVP_PKEY_is_a (Results 1 – 25 of 37) sorted by relevance

12

/openssl/doc/man3/
H A DEVP_PKEY_is_a.pod5 EVP_PKEY_is_a, EVP_PKEY_can_sign, EVP_PKEY_type_names_do_all,
13 int EVP_PKEY_is_a(const EVP_PKEY *pkey, const char *name);
24 EVP_PKEY_is_a() checks if the key type of I<pkey> is I<name>.
52 EVP_PKEY_is_a() returns 1 if I<pkey> has the key type I<name>,
70 =head2 EVP_PKEY_is_a()
73 determine what I<name> is possible to use with EVP_PKEY_is_a(). We do know
81 if (EVP_PKEY_is_a(pkey, "RSA")) {
H A DEVP_PKEY_CTX_new.pod58 EVP_PKEY_is_a() checks if the key type associated with I<ctx> is I<keytype>.
/openssl/fuzz/
H A Ddecoder.c71 if ((!EVP_PKEY_is_a(pkey, "DH") && !EVP_PKEY_is_a(pkey, "DHX")) in FuzzerTestOneInput()
/openssl/crypto/asn1/
H A Da_verify.c164 if (!EVP_PKEY_is_a(pkey, "RSA") && !EVP_PKEY_is_a(pkey, "RSA-PSS")) { in ASN1_item_verify_ctx()
175 if (!EVP_PKEY_is_a(pkey, OBJ_nid2sn(pknid))) { in ASN1_item_verify_ctx()
/openssl/apps/
H A Ddhparam.c303 if (!EVP_PKEY_is_a(tmppkey, "DSA")) { in dhparam_main()
311 if (!EVP_PKEY_is_a(tmppkey, "DH") in dhparam_main()
312 && !EVP_PKEY_is_a(tmppkey, "DHX")) { in dhparam_main()
H A Drsa.c258 if (!EVP_PKEY_is_a(pkey, "RSA") && !EVP_PKEY_is_a(pkey, "RSA-PSS")) { in rsa_main()
H A Dpkeyutl.c50 return EVP_PKEY_is_a(pkey, "ED25519") in is_EdDSA()
51 || EVP_PKEY_is_a(pkey, "ED448"); in is_EdDSA()
319 if (pkey_op == EVP_PKEY_OP_VERIFYRECOVER && !EVP_PKEY_is_a(pkey, "RSA")) { in pkeyutl_main()
H A Ddsa.c188 if (!EVP_PKEY_is_a(pkey, "DSA")) { in dsa_main()
H A Dpkey.c226 if (!EVP_PKEY_is_a(pkey, "EC")) in pkey_main()
H A Dx509.c1010 if (EVP_PKEY_is_a(pkey, "RSA") || EVP_PKEY_is_a(pkey, "RSA-PSS")) { in x509_main()
1017 } else if (EVP_PKEY_is_a(pkey, "DSA")) { in x509_main()
H A Dreq.c1007 if (EVP_PKEY_is_a(tpubkey, "RSA") || EVP_PKEY_is_a(tpubkey, "RSA-PSS")) { in req_main()
1597 if (!EVP_PKEY_is_a(param, *pkeytype)) { in set_keygen_ctx()
/openssl/crypto/cms/
H A Dcms_env.c127 if (EVP_PKEY_is_a(pkey, "DHX") || EVP_PKEY_is_a(pkey, "DH")) in ossl_cms_env_asn1_ctrl()
129 else if (EVP_PKEY_is_a(pkey, "EC")) in ossl_cms_env_asn1_ctrl()
131 else if (EVP_PKEY_is_a(pkey, "RSA")) in ossl_cms_env_asn1_ctrl()
623 if (EVP_PKEY_is_a(pkey, "RSA")) in cms_RecipientInfo_ktri_decrypt()
1337 if (EVP_PKEY_is_a(pk, "DH")) in ossl_cms_pkey_get_ri_type()
1339 else if (EVP_PKEY_is_a(pk, "DHX")) in ossl_cms_pkey_get_ri_type()
1341 else if (EVP_PKEY_is_a(pk, "DSA")) in ossl_cms_pkey_get_ri_type()
1343 else if (EVP_PKEY_is_a(pk, "EC")) in ossl_cms_pkey_get_ri_type()
1345 else if (EVP_PKEY_is_a(pk, "RSA")) in ossl_cms_pkey_get_ri_type()
H A Dcms_sd.c264 if (EVP_PKEY_is_a(pkey, "DSA") || EVP_PKEY_is_a(pkey, "EC")) in cms_sd_asn1_ctrl()
266 else if (EVP_PKEY_is_a(pkey, "RSA") || EVP_PKEY_is_a(pkey, "RSA-PSS")) in cms_sd_asn1_ctrl()
H A Dcms_rsa.c256 if (EVP_PKEY_is_a(pkey, "RSA-PSS")) { in rsa_cms_verify()
H A Dcms_dh.c42 if (pk == NULL || !EVP_PKEY_is_a(pk, "DHX")) in dh_cms_set_peerkey()
/openssl/crypto/pkcs7/
H A Dpk7_lib.c370 if (EVP_PKEY_is_a(pkey, "EC") || EVP_PKEY_is_a(pkey, "DSA")) in PKCS7_SIGNER_INFO_set()
372 if (EVP_PKEY_is_a(pkey, "RSA")) in PKCS7_SIGNER_INFO_set()
636 if (EVP_PKEY_is_a(pkey, "RSA-PSS")) in PKCS7_RECIP_INFO_set()
638 if (EVP_PKEY_is_a(pkey, "RSA")) { in PKCS7_RECIP_INFO_set()
/openssl/test/
H A Dprovider_pkey_test.c280 if (!TEST_ptr(pkey) || !TEST_int_eq(EVP_PKEY_is_a(pkey, "RSA"), 1)) in test_pkey_store()
331 if (!TEST_ptr(pkey) || !TEST_int_eq(EVP_PKEY_is_a(pkey, "RSA"), 1)) in test_pkey_delete()
H A Dossl_store_test.c94 ret = EVP_PKEY_is_a(pkey, type); in get_params()
H A Dalgorithmid_test.c140 if (!TEST_true(EVP_PKEY_is_a(pkey, OBJ_nid2sn(pkey_nid)))) { in test_x509_sig_aid()
H A Dendecode_test.c539 if (!(ok = TEST_FL_true(EVP_PKEY_is_a(pkey, type)))) { in check_unprotected_PKCS8_DER()
817 int ok = (TEST_FL_ptr(pkey) && TEST_FL_true(EVP_PKEY_is_a(pkey, type))); in check_public_DER()
/openssl/ssl/
H A Dssl_cert.c1318 if (EVP_PKEY_is_a(pk, OBJ_nid2sn(tmp_lu->nid)) in ssl_cert_lookup_by_pkey()
1319 || EVP_PKEY_is_a(pk, OBJ_nid2ln(tmp_lu->nid))) { in ssl_cert_lookup_by_pkey()
1329 if (EVP_PKEY_is_a(pk, OBJ_nid2sn(tmp_lu->nid)) in ssl_cert_lookup_by_pkey()
1330 || EVP_PKEY_is_a(pk, OBJ_nid2ln(tmp_lu->nid))) { in ssl_cert_lookup_by_pkey()
H A Dt1_lib.c1269 if (!EVP_PKEY_is_a(pkey, "EC")) in tls1_check_pkey_comp()
1331 if (!EVP_PKEY_is_a(pkey, "EC")) in tls1_check_cert_param()
3299 if (EVP_PKEY_is_a(pk, "EC") && !tls1_check_pkey_comp(s, pk)) in tls1_check_chain()
3460 if (EVP_PKEY_is_a(pk, "RSA")) in tls1_check_chain()
3462 else if (EVP_PKEY_is_a(pk, "DSA")) in tls1_check_chain()
3464 else if (EVP_PKEY_is_a(pk, "EC")) in tls1_check_chain()
4186 if (EVP_PKEY_is_a(pkey, "DH")) { in tls13_set_encoded_pub_key()
4192 } else if (EVP_PKEY_is_a(pkey, "EC")) { in tls13_set_encoded_pub_key()
/openssl/crypto/x509/
H A Dv3_purp.c379 if (EVP_PKEY_is_a(issuer_key, OBJ_nid2sn(subj_sig_nid)) in check_sig_alg_match()
380 || (EVP_PKEY_is_a(issuer_key, "RSA") && subj_sig_nid == NID_rsassaPss)) in check_sig_alg_match()
H A Dx509_cmp.c443 if (pkey == NULL || !EVP_PKEY_is_a(pkey, "EC")) in check_suite_b()
/openssl/crypto/pem/
H A Dpvkfmt.c573 if (EVP_PKEY_is_a(pk, "RSA")) { in do_i2b()
577 } else if (EVP_PKEY_is_a(pk, "DSA")) { in do_i2b()

Completed in 200 milliseconds

12