• Home
  • Raw
  • Download

Lines Matching refs:peer_pk

1919     mbedtls_pk_context *peer_pk;  in ssl_write_encrypted_pms()  local
1944 peer_pk = &ssl->handshake->peer_pubkey; in ssl_write_encrypted_pms()
1951 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_write_encrypted_pms()
1957 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_RSA)) { in ssl_write_encrypted_pms()
1962 if ((ret = mbedtls_pk_encrypt(peer_pk, in ssl_write_encrypted_pms()
1978 mbedtls_pk_free(peer_pk); in ssl_write_encrypted_pms()
1992 mbedtls_pk_context *peer_pk; in ssl_get_ecdh_params_from_cert() local
1995 peer_pk = &ssl->handshake->peer_pubkey; in ssl_get_ecdh_params_from_cert()
2002 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_get_ecdh_params_from_cert()
2007 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_ECKEY)) { in ssl_get_ecdh_params_from_cert()
2012 peer_key = mbedtls_pk_ec(*peer_pk); in ssl_get_ecdh_params_from_cert()
2066 mbedtls_pk_free(peer_pk); in ssl_get_ecdh_params_from_cert()
2298 mbedtls_pk_context *peer_pk; in ssl_parse_server_key_exchange() local
2301 peer_pk = &ssl->handshake->peer_pubkey; in ssl_parse_server_key_exchange()
2308 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_server_key_exchange()
2330 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_server_key_exchange()
2386 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_server_key_exchange()
2412 peer_pk, in ssl_parse_server_key_exchange()
2417 ret = mbedtls_pk_verify_restartable(peer_pk, in ssl_parse_server_key_exchange()
2444 mbedtls_pk_free(peer_pk); in ssl_parse_server_key_exchange()