/system/bt/osi/src/ |
H A D | osi.cc | 36 int rand; local 40 LOG_ERROR(LOG_TAG, "%s can't open rand fd %s: %s ", __func__, RANDOM_PATH, 45 ssize_t read_bytes = read(rand_fd, &rand, sizeof(rand)); 48 CHECK(read_bytes == sizeof(rand)); 50 if (rand < 0) rand = -rand; 52 return rand;
|
/system/keymaster/km_openssl/ |
H A D | software_random_source.cpp | 19 #include <openssl/rand.h>
|
H A D | triple_des_key.cpp | 24 #include <openssl/rand.h>
|
H A D | aes_key.cpp | 24 #include <openssl/rand.h>
|
H A D | hmac_key.cpp | 22 #include <openssl/rand.h>
|
H A D | openssl_utils.cpp | 19 #include <openssl/rand.h>
|
H A D | symmetric_key.cpp | 22 #include <openssl/rand.h>
|
/system/bt/stack/btm/ |
H A D | btm_ble_addr.cc | 84 void btm_gen_resolve_paddr_low(BT_OCTET8 rand) { argument 89 rand[2] &= (~BLE_RESOLVE_ADDR_MASK); 90 rand[2] |= BLE_RESOLVE_ADDR_MSB; 92 p_cb->private_addr.address[2] = rand[0]; 93 p_cb->private_addr.address[1] = rand[1]; 94 p_cb->private_addr.address[0] = rand[2]; 97 if (!SMP_Encrypt(btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN, rand, 3, 115 /* generate 3B rand as BD LSB, SRK with it, get BD MSB */ 128 static void btm_gen_non_resolve_paddr_cmpl(BT_OCTET8 rand) { argument 138 pp = rand; 277 uint8_t rand[3]; local [all...] |
H A D | btm_ble_int.h | 89 extern void btm_ble_ltk_request(uint16_t handle, uint8_t rand[8], 162 extern void btm_gen_resolve_paddr_low(BT_OCTET8 rand);
|
H A D | btm_ble_multi_adv.cc | 191 uint8_t rand[8]) { 196 rand[2] &= (~BLE_RESOLVE_ADDR_MASK); 197 rand[2] |= BLE_RESOLVE_ADDR_MSB; 199 bda.address[2] = rand[0]; 200 bda.address[1] = rand[1]; 201 bda.address[0] = rand[2]; 207 if (!SMP_Encrypt(irk, BT_OCTET16_LEN, rand, 3, &output)) 190 OnRpaGenerationComplete(base::Callback<void(RawAddress)> cb, uint8_t rand[8]) argument
|
/system/tpm/tpm_manager/server/ |
H A D | openssl_crypto_util_impl.cc | 21 #include <openssl/rand.h>
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | broken_adv.cc | 98 uint32_t randomness = rand(); 121 uint32_t randomness = rand(); 134 uint32_t randomness = rand(); 152 for (size_t i = 0; i < data_length; i++) ad.push_back(rand() & 0xff);
|
/system/security/keystore/tests/ |
H A D | confirmationui_rate_limiting_test.cpp | 84 ASSERT_TRUE(rateLimiting.tryPrompt(rand())); 106 uid_t id = rand(); 124 uid_t id = rand(); 142 uid_t id = rand(); 161 uid_t id = rand(); 175 uid_t id = rand(); 192 uid_t id = rand(); 209 uid_t id = rand(); 253 uid_t id = rand();
|
/system/extras/mmap-perf/ |
H A D | mmapPerf.cpp | 38 uint64_t seed = (unsigned long long)rand() | ((unsigned long long)rand() << 32); 117 unsigned int targetPage = rand() % pagesTotal; 127 unsigned int targetPage = rand() % pagesTotal;
|
/system/tpm/trunks/ |
H A D | hmac_session_impl.cc | 24 #include <openssl/rand.h>
|
H A D | policy_session_impl.cc | 26 #include <openssl/rand.h>
|
/system/bt/stack/smp/ |
H A D | smp_keys.cc | 173 void smp_proc_passkey(tSMP_CB* p_cb, BT_OCTET8 rand) { argument 176 uint8_t* pp = rand; 305 [](tSMP_CB* p_cb, BT_OCTET8 rand) { 307 STREAM_TO_UINT16(div, rand); 432 tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, BT_OCTET16 rand, argument 448 /* p1' = rand XOR p1 */ 449 smp_xor_128(p1, rand); 487 smp_debug_print_nbyte_little_endian((uint8_t*)p_cb->rand, "local_rand", 16); 489 tSMP_STATUS status = smp_calculate_comfirm(p_cb, p_cb->rand, &output); 523 [](tSMP_CB* p_cb, BT_OCTET8 rand) { 623 smp_generate_y(tSMP_CB* p_cb, BT_OCTET8 rand) argument [all...] |
/system/chre/util/tests/ |
H A D | heap_test.cc | 32 array[i] = std::rand(); 72 array[i] = std::rand(); 85 chre::remove_heap(v, std::rand() % s, comp);
|
/system/extras/zram-perf/ |
H A D | zram-perf.cpp | 18 int start = rand(); 24 int val = rand() & 0xfff;
|
/system/extras/ioshark/ |
H A D | ioshark_bench_mmap.c | 94 i = find_rand_index[rand() % rand_index_len]; 96 iolength = ((rand() % 4) + 1) * 4096; 130 if ((rand() % 2) == 1) {
|
/system/extras/tests/ext4/ |
H A D | rand_emmc_perf.c | 126 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { 156 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) {
|
/system/media/audio_utils/tests/ |
H A D | fifo_tests.cpp | 127 framesToWrite = rand() % (framesToWrite + 1); 162 framesToRead = rand() % (framesToRead + 1);
|
/system/core/trusty/libtrusty/tipc-test/ |
H A D | tipc_test.c | 366 msg_len = rand() % msgsz; 430 msg_len = rand() % msgsz; 724 msg_len = rand() % msgsz; 806 msg_len = rand() % msgsz;
|
/system/hwservicemanager/ |
H A D | TokenManager.cpp | 9 #include <openssl/rand.h>
|
/system/security/keystore/ |
H A D | grant_store.cpp | 58 std::rand());
|