Home
last modified time | relevance | path

Searched refs:evp_pkey (Results 1 – 4 of 4) sorted by relevance

/packages/modules/adb/client/
Dauth.cpp543 bssl::UniquePtr<EVP_PKEY> evp_pkey(EVP_PKEY_new()); in adb_tls_set_certificate() local
544 CHECK(EVP_PKEY_set1_RSA(evp_pkey.get(), rsa_priv_key->second.get())); in adb_tls_set_certificate()
545 auto x509 = GenerateX509Certificate(evp_pkey.get()); in adb_tls_set_certificate()
547 auto evp_str = Key::ToPEMString(evp_pkey.get()); in adb_tls_set_certificate()
/packages/modules/adb/daemon/
Dauth.cpp314 bssl::UniquePtr<EVP_PKEY> evp_pkey(X509_get_pubkey(cert)); in adbd_tls_verify_cert() local
315 if (evp_pkey == nullptr) { in adbd_tls_verify_cert()
339 if (EVP_PKEY_cmp(known_evp.get(), evp_pkey.get())) { in adbd_tls_verify_cert()
/packages/modules/adb/tls/
Dtls_connection.cpp378 auto evp_pkey = TlsConnectionImpl::EvpPkeyFromPEM(priv_key); in SetCertAndKey() local
379 if (x509_cert == nullptr || evp_pkey == nullptr) { in SetCertAndKey()
386 if (!SSL_set_chain_and_key(ssl, cert_chain.data(), cert_chain.size(), evp_pkey.get(), in SetCertAndKey()
/packages/modules/adb/
Dtransport.cpp510 bssl::UniquePtr<EVP_PKEY> evp_pkey(EVP_PKEY_new()); in DoTlsHandshake() local
511 if (!EVP_PKEY_set1_RSA(evp_pkey.get(), key)) { in DoTlsHandshake()
515 auto x509 = GenerateX509Certificate(evp_pkey.get()); in DoTlsHandshake()
517 auto evp_str = Key::ToPEMString(evp_pkey.get()); in DoTlsHandshake()