Home
last modified time | relevance | path

Searched refs:GenerateRandom (Results 1 – 21 of 21) 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.cpp106 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
167 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
Decdh_operation.cpp30 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.cpp170 keymaster_error_t GenerateRandom(uint8_t* buf, size_t length) { in GenerateRandom() function
Dhmac_operation.cpp147 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
Dblock_cipher_operation.cpp159 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
Drsa_operation.cpp171 auto rc = GenerateRandom(reinterpret_cast<uint8_t*>(&operation_handle_), in Begin()
/system/keymaster/include/keymaster/km_openssl/
Dsoftware_random_source.h29 keymaster_error_t GenerateRandom(uint8_t* buffer, size_t length) const override;
Dopenssl_utils.h103 keymaster_error_t GenerateRandom(uint8_t* buf, size_t length);
/system/keymaster/include/keymaster/
Drandom_source.h33 virtual keymaster_error_t GenerateRandom(uint8_t* buffer, size_t length) const = 0;
/system/bt/gd/security/
Decdh_keys.cc36 static std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom() function
55 std::array<uint8_t, 32> private_key = GenerateRandom<32>(); in GenerateECDHKeyPair()
Dpairing_handler_le_secure_connections.cc23 using bluetooth::os::GenerateRandom;
252 Na = GenerateRandom<16>(); in SecureConnectionsOutOfBand()
265 Nb = GenerateRandom<16>(); in SecureConnectionsOutOfBand()
291 passkey = GenerateRandom(); in SecureConnectionsPasskeyEntry()
324 Nai = GenerateRandom<16>(); in SecureConnectionsPasskeyEntry()
356 Nbi = GenerateRandom<16>(); in SecureConnectionsPasskeyEntry()
437 Na = GenerateRandom<16>(); in SecureConnectionsJustWorks()
464 Nb = GenerateRandom<16>(); in SecureConnectionsJustWorks()
Dpairing_handler_le_legacy.cc23 using bluetooth::os::GenerateRandom;
91 passkey = GenerateRandom(); in LegacyPasskeyEntry()
131 mrand = GenerateRandom<16>(); in DoLegacyStage2()
189 srand = GenerateRandom<16>(); in DoLegacyStage2()
Dpairing_handler_le.cc30 data.r = bluetooth::os::GenerateRandom<16>(); in GenerateOobData()
340 Octet16 my_ltk = bluetooth::os::GenerateRandom<16>(); in DistributeKeys()
341 uint16_t my_ediv = bluetooth::os::GenerateRandom(); in DistributeKeys()
342 std::array<uint8_t, 8> my_rand = bluetooth::os::GenerateRandom<8>(); in DistributeKeys()
Dpairing_handler_le_unittest.cc33 using bluetooth::os::GenerateRandom;
220 Octet16 Nb = GenerateRandom<16>(); in TEST_F()
/system/bt/gd/hci/
Dle_address_manager.cc289 std::array<uint8_t, 3> prand = os::GenerateRandom<3>(); in generate_rpa()
294 prand[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_rpa()
317 std::array<uint8_t, 6> random = os::GenerateRandom<6>(); in generate_nrpa()
323 random[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
331 address.address[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
339 auto random_ms = std::chrono::milliseconds(os::GenerateRandom()) % (interval_random_part_max_ms); in GetNextPrivateAddressIntervalMs()
/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp49 random.GenerateRandom(nonce.peek_write(), size); in generate_nonce()
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp427 if (GenerateRandom(ephemeral_mac_key.data(), ephemeral_mac_key.size()) != KM_ERROR_OK) { in GenerateCsr()
498 if (GenerateRandom(nonce.data(), nonce.size()) != KM_ERROR_OK) { in GenerateCsr()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc86 mutation.Add(adapter_config.SetLeIdentityResolvingKey(bluetooth::os::GenerateRandom<16>())); in Init()