Searched refs:AddressObfuscator (Results 1 – 6 of 6) sorted by relevance
23 using bluetooth::common::AddressObfuscator;25 constexpr AddressObfuscator::Octet32 kEmptyKey = {0};27 constexpr AddressObfuscator::Octet32 kTestKey1 = {33 constexpr AddressObfuscator::Octet32 kTestResultRaw1 = {41 constexpr AddressObfuscator::Octet32 kTestKey2 = {47 constexpr AddressObfuscator::Octet32 kTestResultRaw2_1 = {56 constexpr AddressObfuscator::Octet32 kTestResultRaw2_2 = {65 constexpr AddressObfuscator::Octet32 kTestResultRaw2_3 = {74 EXPECT_FALSE(AddressObfuscator::IsSaltValid(kEmptyKey)); in TEST()78 EXPECT_TRUE(AddressObfuscator::IsSaltValid(kTestKey1)); in TEST()[all …]
30 class AddressObfuscator {34 static AddressObfuscator* GetInstance() { in GetInstance()35 static auto instance = new AddressObfuscator(); in GetInstance()70 AddressObfuscator() : salt_256bit_({0}) {} in AddressObfuscator() function
31 bool AddressObfuscator::IsSaltValid(const Octet32& salt_256bit) { in IsSaltValid()36 void AddressObfuscator::Initialize(const Octet32& salt_256bit) { in Initialize()41 bool AddressObfuscator::IsInitialized() { in IsInitialized()46 std::string AddressObfuscator::Obfuscate(const RawAddress& address) { in Obfuscate()
582 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(*address); in LogLinkLayerConnectionEvent()632 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioUnderrunEvent()659 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioOverrunEvent()686 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadRssiResult()709 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadFailedContactCounterResult()733 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadTxPowerLevelResult()757 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSmpPairingEvent()780 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogClassicPairingEvent()804 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSdpAttribute()830 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSocketConnectionState()[all …]
74 using bluetooth::common::AddressObfuscator;163 AddressObfuscator::Octet32 metrics_salt = {}; in read_or_set_metrics_salt()178 if (!AddressObfuscator::IsSaltValid(metrics_salt)) { in read_or_set_metrics_salt()189 AddressObfuscator::GetInstance()->Initialize(metrics_salt); in read_or_set_metrics_salt()
471 return bluetooth::common::AddressObfuscator::GetInstance()->Obfuscate( in obfuscate_address()