• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssl/ssl/

Lines Matching defs:pkey

24 static const SIGALG_LOOKUP *find_sig_alg(SSL *s, X509 *x, EVP_PKEY *pkey);
423 static uint16_t tls1_get_group_id(EVP_PKEY *pkey)
425 EC_KEY *ec = EVP_PKEY_get0_EC_KEY(pkey);
435 static int tls1_check_pkey_comp(SSL *s, EVP_PKEY *pkey)
443 if (EVP_PKEY_id(pkey) != EVP_PKEY_EC)
445 ec = EVP_PKEY_get0_EC_KEY(pkey);
560 EVP_PKEY *pkey;
561 pkey = X509_get0_pubkey(x);
562 if (pkey == NULL)
565 if (EVP_PKEY_id(pkey) != EVP_PKEY_EC)
568 if (!tls1_check_pkey_comp(s, pkey))
570 group_id = tls1_get_group_id(pkey);
909 int tls1_set_peer_legacy_sigalg(SSL *s, const EVP_PKEY *pkey)
914 if (ssl_cert_lookup_by_pkey(pkey, &idx) == NULL)
1024 int tls12_check_peer_sigalg(SSL *s, uint16_t sig, EVP_PKEY *pkey)
1030 int pkeyid = EVP_PKEY_id(pkey);
1062 if (!ssl_cert_lookup_by_nid(EVP_PKEY_id(pkey), &cidx)
1073 if (!tls1_check_pkey_comp(s, pkey)) {
1082 EC_KEY *ec = EVP_PKEY_get0_EC_KEY(pkey);
1093 if (!tls1_check_group_id(s, tls1_get_group_id(pkey), 1)) {
2490 EVP_PKEY *pkey = X509_get0_pubkey(x);
2491 if (pkey) {
2498 secbits = EVP_PKEY_security_bits(pkey);
2595 EVP_PKEY *pkey)
2603 if (EVP_PKEY_get_default_digest_nid(pkey, &default_mdnid) == 2 &&
2651 * Returns true if the supplied cert |x| and key |pkey| is usable with the
2655 EVP_PKEY *pkey)
2659 if (ssl_cert_lookup_by_pkey(pkey, &idx) == NULL)
2666 return check_cert_usable(s, sig, x, pkey);
2671 * |pkey|. |x| and |pkey| may be NULL in which case we additionally look at our
2674 static const SIGALG_LOOKUP *find_sig_alg(SSL *s, X509 *x, EVP_PKEY *pkey)
2696 if ((pkey == NULL && !has_usable_cert(s, lu, -1))
2697 || (pkey != NULL && !is_cert_usable(s, lu, x, pkey)))
2700 tmppkey = (pkey != NULL) ? pkey
2800 EVP_PKEY *pkey = s->cert->pkeys[sig_idx].privatekey;
2802 if (!rsa_pss_check_min_key_size(EVP_PKEY_get0(pkey), lu))