Home
last modified time | relevance | path

Searched refs:remote_public_key (Results 1 – 3 of 3) sorted by relevance

/system/bt/gd/security/
Decdh_keys.cc77 …int8_t, 32> ComputeDHKey(std::array<uint8_t, 32> my_private_key, EcdhPublicKey remote_public_key) { in ComputeDHKey() argument
81 memcpy(peer_publ_key.x, remote_public_key.x.data(), 32); in ComputeDHKey()
82 memcpy(peer_publ_key.y, remote_public_key.y.data(), 32); in ComputeDHKey()
Dpairing_handler_le_secure_connections.cc56 EcdhPublicKey remote_public_key; in ExchangePublicKeys() local
58 remote_public_key.x = ppkv.GetPublicKeyX(); in ExchangePublicKeys()
59 remote_public_key.y = ppkv.GetPublicKeyY(); in ExchangePublicKeys()
62 if (public_key.x == remote_public_key.x) { in ExchangePublicKeys()
68 if (!ValidateECDHPoint(remote_public_key)) { in ExchangePublicKeys()
85 std::array<uint8_t, 32> dhkey = ComputeDHKey(private_key, remote_public_key); in ExchangePublicKeys()
87 const EcdhPublicKey& PKa = IAmCentral(i) ? public_key : remote_public_key; in ExchangePublicKeys()
88 const EcdhPublicKey& PKb = IAmCentral(i) ? remote_public_key : public_key; in ExchangePublicKeys()
Decdh_keys.h38 …uint8_t, 32> ComputeDHKey(std::array<uint8_t, 32> my_private_key, EcdhPublicKey remote_public_key);