/system/core/adb/client/pairing/tests/ |
D | pairing_connection_test.cpp | 80 std::vector<uint8_t> cert; in initPairing() local 83 cert.assign(reinterpret_cast<const uint8_t*>(kTestServerCert.data()), in initPairing() 89 server_ = PairingServer::create(server_pswd, server_info_, cert, key, kDefaultPairingPort); in initPairing() 90 cert.assign(reinterpret_cast<const uint8_t*>(kTestClientCert.data()), in initPairing() 96 client_ = PairingClient::create(client_pswd, client_info_, cert, key, "127.0.0.1"); in initPairing() 100 std::vector<uint8_t> cert; in createServer() local 103 cert.assign(reinterpret_cast<const uint8_t*>(kTestServerCert.data()), in createServer() 109 return PairingServer::create(pswd, server_info_, cert, key, kDefaultPairingPort); in createServer() 113 std::vector<uint8_t> cert; in createClient() local 116 cert.assign(reinterpret_cast<const uint8_t*>(kTestClientCert.data()), in createClient() [all …]
|
D | pairing_server.cpp | 56 explicit PairingServerImpl(const Data& pswd, const PeerInfo& peer_info, const Data& cert, 133 PairingServerImpl::PairingServerImpl(const Data& pswd, const PeerInfo& peer_info, const Data& cert, in PairingServerImpl() argument 135 : pswd_(pswd), peer_info_(peer_info), cert_(cert), priv_key_(priv_key), port_(port) { in PairingServerImpl() 322 [fd](const PeerInfo* peer_info, const Data* cert, void* opaque) { in connectionEventsWorker() argument 326 if (peer_info != nullptr && cert != nullptr) { in connectionEventsWorker() 328 std::string(peer_info->guid), Data(*cert)); in connectionEventsWorker() 347 auto [fd, name, guid, cert] = std::move(*p); in connectionEventsWorker() 348 if (name.has_value() && guid.has_value() && cert.has_value() && !name->empty() && in connectionEventsWorker() 349 !guid->empty() && !cert->empty()) { in connectionEventsWorker() 361 cb_(&info, &*cert, opaque_); in connectionEventsWorker() [all …]
|
/system/bt/gd/security/cert/ |
D | le_security_test.py | 19 from cert.event_stream import EventStream 20 from cert.gd_base_test import GdBaseTestClass 21 from cert.matchers import HciMatchers 22 from cert.matchers import SecurityMatchers 23 from cert.metadata import metadata 24 from cert.py_hci import PyHci 25 from cert.py_le_security import PyLeSecurity 26 from cert.truth import assertThat 34 from security.cert.cert_security import CertSecurity 72 self.cert_security = PyLeSecurity(self.cert) [all …]
|
D | security_test.py | 20 from cert.event_stream import EventStream 21 from cert.gd_base_test import GdBaseTestClass 22 from cert.py_security import PySecurity 29 from security.cert.cert_security import CertSecurity 77 self.cert.neighbor.EnablePageScan(neighbor_facade.EnableMsg(enabled=True)) 81 self.cert.name = b'Cert Device' 82 self.cert.address = self.cert.hci_controller.GetMacAddress(empty_proto.Empty()).address 86 self.cert.hci_controller.WriteLocalName(controller_facade.NameMsg(name=self.cert.name)) 89 self.cert_security = CertSecurity(self.cert) 150 self.dut_security.enforce_security_policy(self.cert.address, [all …]
|
/system/bt/gd/hci/cert/ |
D | le_scanning_with_security_test.py | 17 from cert.gd_base_test import GdBaseTestClass 18 from cert.event_stream import EventStream 19 from cert.truth import assertThat 35 self.cert.hci.RegisterEventHandler(msg) 39 self.cert.hci.RegisterLeEventHandler(msg) 45 self.cert.hci.EnqueueCommandWithComplete(cmd) 47 self.cert.hci.EnqueueCommandWithStatus(cmd) 61 self.cert.hci_le_initiator_address.SetPrivacyPolicyForInitiatorAddress(cert_privacy_policy) 81 create_response = self.cert.hci_le_advertising_manager.CreateAdvertiser(request) 86 self.cert.hci_le_advertising_manager.RemoveAdvertiser(remove_request)
|
D | le_scanning_manager_test.py | 21 from cert.gd_base_test import GdBaseTestClass 22 from cert.event_stream import EventStream 40 self.cert.hci.RegisterEventHandler(msg) 44 self.cert.hci.RegisterLeEventHandler(msg) 50 self.cert.hci.EnqueueCommandWithComplete(cmd) 52 self.cert.hci.EnqueueCommandWithStatus(cmd) 72 self.cert.hci_le_initiator_address.SetPrivacyPolicyForInitiatorAddress(cert_privacy_policy) 92 create_response = self.cert.hci_le_advertising_manager.CreateAdvertiser(request) 97 self.cert.hci_le_advertising_manager.RemoveAdvertiser(remove_request)
|
D | controller_test.py | 19 from cert.gd_base_test import GdBaseTestClass 20 from cert.truth import assertThat 32 cert_address = self.cert.hci_controller.GetMacAddressSimple() 50 self.cert.hci_controller.WriteLocalName(controller_facade.NameMsg(name=b'ImTheCert')) 51 cert_name = self.cert.hci_controller.GetLocalNameSimple()
|
D | le_advertising_manager_test.py | 21 from cert.gd_base_test import GdBaseTestClass 22 from cert.event_stream import EventStream 39 self.cert.hci.RegisterEventHandler(msg) 43 self.cert.hci.RegisterLeEventHandler(msg) 49 self.cert.hci.EnqueueCommandWithComplete(cmd) 51 self.cert.hci.EnqueueCommandWithStatus(cmd) 56 … with EventStream(self.cert.hci.FetchLeSubevents(empty_proto.Empty())) as hci_le_event_stream:
|
D | acl_manager_test.py | 17 from cert.gd_base_test import GdBaseTestClass 18 from cert.truth import assertThat 21 from cert.py_hci import PyHci 22 from cert.py_acl_manager import PyAclManager 33 self.cert_hci = PyHci(self.cert, acl_streaming=True)
|
/system/bt/gd/cert/ |
D | gd_base_test.py | 31 from cert.async_subprocess_logger import AsyncSubprocessLogger 32 from cert.os_utils import get_gd_root 33 from cert.os_utils import read_crash_snippet_and_log_tail 34 from cert.os_utils import is_subprocess_alive 35 from cert.os_utils import make_ports_available 36 from cert.os_utils import TerminalColor 37 from cert.gd_device import MOBLY_CONTROLLER_CONFIG_NAME as CONTROLLER_CONFIG_NAME 103 self.cert = self.gd_devices[0] 128 self.cert.rootservice.StartStack( 133 self.cert.wait_channel_ready() [all …]
|
D | run_pts_l2cap.sh | 3 source $ANDROID_BUILD_TOP/system/bt/cert/run \ 4 --test_config=$ANDROID_BUILD_TOP/system/bt/gd/cert/pts.json \ 5 --test_file=$ANDROID_BUILD_TOP/system/bt/gd/cert/pts_l2cap_testcase
|
D | py_le_security.py | 20 from cert.captures import SecurityCaptures 21 from cert.closable import Closable 22 from cert.closable import safeClose 23 from cert.event_stream import EventStream 24 from cert.truth import assertThat
|
D | py_acl_manager.py | 18 from cert.event_stream import EventStream 19 from cert.event_stream import IEventStream 20 from cert.captures import HciCaptures 21 from cert.closable import Closable 22 from cert.closable import safeClose 24 from cert.truth import assertThat
|
D | py_le_acl_manager.py | 19 from cert.event_stream import EventStream 20 from cert.event_stream import IEventStream 21 from cert.captures import HciCaptures 22 from cert.closable import Closable 23 from cert.closable import safeClose 25 from cert.truth import assertThat
|
D | py_hal.py | 18 from cert.event_stream import EventStream 19 from cert.closable import Closable 20 from cert.closable import safeClose
|
D | py_hci.py | 18 from cert.event_stream import EventStream 19 from cert.event_stream import FilteringEventStream 20 from cert.event_stream import IEventStream 21 from cert.closable import Closable 22 from cert.closable import safeClose 23 from cert.captures import HciCaptures 25 from cert.truth import assertThat
|
/system/bt/gd/shim/cert/ |
D | shim_test.py | 21 from cert.event_stream import EventStream 22 from cert.gd_base_test import GdBaseTestClass 23 from cert.truth import assertThat 36 result = self.cert.shim.Dump(empty_proto.Empty())
|
/system/extras/verity/ |
D | generate_verity_key.c | 67 X509 *cert = NULL; in convert_x509() local 79 cert = PEM_read_X509(f, &cert, NULL, NULL); in convert_x509() 80 if (!cert) { in convert_x509() 85 pkey = X509_get_pubkey(cert); in convert_x509() 108 if (cert) { in convert_x509() 109 X509_free(cert); in convert_x509()
|
D | VeritySigner.java | 22 import java.security.cert.X509Certificate; 45 X509Certificate cert = Utils.loadPEMCertificate(args[1]); in main() local 46 PublicKey publicKey = cert.getPublicKey(); in main()
|
/system/core/adb/pairing_connection/tests/ |
D | pairing_client.cpp | 50 explicit PairingClientImpl(const Data& pswd, const PeerInfo& peer_info, const Data& cert, 64 const Data& cert, const Data& priv_key); 92 const Data& cert, const Data& priv_key) { in CreatePairingConnection() argument 94 pairing_connection_client_new(pswd.data(), pswd.size(), &peer_info, cert.data(), in CreatePairingConnection() 95 cert.size(), priv_key.data(), priv_key.size()), in CreatePairingConnection() 99 PairingClientImpl::PairingClientImpl(const Data& pswd, const PeerInfo& peer_info, const Data& cert, in PairingClientImpl() argument 103 cert_(cert), in PairingClientImpl() 192 const Data& cert, const Data& priv_key) { in Create() argument 194 CHECK(!cert.empty()); in Create() 197 return std::unique_ptr<PairingClient>(new PairingClientImpl(pswd, peer_info, cert, priv_key)); in Create()
|
/system/bt/gd/neighbor/cert/ |
D | py_neighbor.py | 20 from cert.event_stream import EventStream 21 from cert.event_stream import IEventStream 22 from cert.closable import Closable 23 from cert.closable import safeClose 24 from cert.truth import assertThat
|
D | neighbor_test.py | 19 from cert.gd_base_test import GdBaseTestClass 20 from cert.matchers import HciMatchers, NeighborMatchers 21 from cert.py_hci import PyHci 22 from cert.truth import assertThat 23 from neighbor.cert.py_neighbor import PyNeighbor 36 self.cert_hci = PyHci(self.cert, acl_streaming=True)
|
/system/bt/gd/l2cap/le/cert/ |
D | dual_l2cap_test.py | 16 from cert.gd_base_test import GdBaseTestClass 17 from cert.truth import assertThat 18 from cert.py_l2cap import PyLeL2cap, PyL2cap 19 from cert.matchers import L2capMatchers 20 from cert.metadata import metadata 28 from l2cap.classic.cert.cert_l2cap import CertL2cap 29 from l2cap.le.cert.cert_le_l2cap import CertLeL2cap 46 … address=self.cert.controller_read_only_property.ReadLocalAddress(empty_proto.Empty()).address) 49 self.cert_l2cap = CertL2cap(self.cert) 51 self.cert_le_l2cap = CertLeL2cap(self.cert)
|
/system/core/adb/tls/ |
D | tls_connection.cpp | 38 explicit TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, 42 bool AddTrustedCertificate(std::string_view cert) override; 83 TlsConnectionImpl::TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, in TlsConnectionImpl() argument 86 CHECK(!cert.empty() && !priv_key.empty()); in TlsConnectionImpl() 88 cert_ = BufferFromPEM(cert); in TlsConnectionImpl() 153 bool TlsConnectionImpl::AddTrustedCertificate(std::string_view cert) { in AddTrustedCertificate() argument 155 auto buf = X509FromBuffer(BufferFromPEM(cert)); in AddTrustedCertificate() 226 for (auto const& cert : known_certificates_) { in DoHandshake() local 227 if (X509_STORE_add_cert(SSL_CTX_get_cert_store(ssl_ctx_.get()), cert.get()) == 0) { in DoHandshake() 362 std::string_view cert, in Create() argument [all …]
|
/system/core/adb/client/pairing/ |
D | pairing_client.cpp | 50 explicit PairingClientImpl(const Data& pswd, const PeerInfo& peer_info, const Data& cert, 87 PairingClientImpl::PairingClientImpl(const Data& pswd, const PeerInfo& peer_info, const Data& cert, in PairingClientImpl() argument 89 : pswd_(pswd), peer_info_(peer_info), cert_(cert), priv_key_(priv_key) { in PairingClientImpl() 164 const Data& cert, const Data& priv_key) { in Create() argument 166 CHECK(!cert.empty()); in Create() 169 return std::unique_ptr<PairingClient>(new PairingClientImpl(pswd, peer_info, cert, priv_key)); in Create()
|