Home
last modified time | relevance | path

Searched refs:GenerateRandom (Results 1 – 17 of 17) sorted by relevance

/system/bt/gd/os/
Drand.h27 std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom() function
33 inline uint32_t GenerateRandom() { in GenerateRandom() function
/system/keymaster/km_openssl/
Dsoftware_random_source.cpp23 keymaster_error_t SoftwareRandomSource::GenerateRandom(uint8_t* buffer, size_t length) const { in GenerateRandom() function in keymaster::SoftwareRandomSource
Decdsa_operation.cpp107 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
176 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
Dsymmetric_key.cpp54 error = random_source_.GenerateRandom(key_material.writable_data(), key_data_size); in GenerateKey()
Dopenssl_utils.cpp137 keymaster_error_t GenerateRandom(uint8_t* buf, size_t length) { in GenerateRandom() function
Dhmac_operation.cpp144 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
Dblock_cipher_operation.cpp161 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
Drsa_operation.cpp139 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
/system/keymaster/include/keymaster/km_openssl/
Dsoftware_random_source.h30 keymaster_error_t GenerateRandom(uint8_t* buffer, size_t length) const override;
Dopenssl_utils.h100 keymaster_error_t GenerateRandom(uint8_t* buf, size_t length);
/system/keymaster/include/keymaster/
Drandom_source.h34 virtual keymaster_error_t GenerateRandom(uint8_t* buffer, size_t length) const = 0;
/system/bt/gd/security/
Decdh_keys.cc35 static std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom() function
54 std::array<uint8_t, 32> private_key = GenerateRandom<32>(); in GenerateECDHKeyPair()
Dpairing_handler_le_secure_connections.cc23 using bluetooth::os::GenerateRandom;
247 Na = GenerateRandom<16>(); in SecureConnectionsOutOfBand()
260 Nb = GenerateRandom<16>(); in SecureConnectionsOutOfBand()
286 passkey = GenerateRandom(); in SecureConnectionsPasskeyEntry()
319 Nai = GenerateRandom<16>(); in SecureConnectionsPasskeyEntry()
351 Nbi = GenerateRandom<16>(); in SecureConnectionsPasskeyEntry()
431 Na = GenerateRandom<16>(); in SecureConnectionsJustWorks()
458 Nb = GenerateRandom<16>(); in SecureConnectionsJustWorks()
Dpairing_handler_le_legacy.cc23 using bluetooth::os::GenerateRandom;
91 passkey = GenerateRandom(); in LegacyPasskeyEntry()
130 mrand = GenerateRandom<16>(); in DoLegacyStage2()
188 srand = GenerateRandom<16>(); in DoLegacyStage2()
Dpairing_handler_le_unittest.cc33 using bluetooth::os::GenerateRandom;
217 Octet16 Nb = GenerateRandom<16>(); in TEST_F()
Dpairing_handler_le.cc30 data.r = bluetooth::os::GenerateRandom<16>(); in GenerateOobData()
/system/bt/gd/hci/
Dle_address_manager.cc249 std::array<uint8_t, 3> prand = os::GenerateRandom<3>(); in generate_rpa()
254 prand[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_rpa()
277 std::array<uint8_t, 6> random = os::GenerateRandom<6>(); in generate_nrpa()
283 random[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
291 address.address[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
299 auto random_ms = std::chrono::milliseconds(os::GenerateRandom()) % (interval_random_part_max_ms); in get_next_private_address_interval_ms()