Home
last modified time | relevance | path

Searched refs:random_data (Results 1 – 11 of 11) sorted by relevance

/system/nvram/messages/tests/
Dnvram_messages_test.cpp401 uint8_t random_data[1024]; in TEST() local
402 for (size_t i = 0; i < sizeof(random_data); ++i) { in TEST()
403 random_data[i] = rand() & 0xff; in TEST()
407 for (size_t pos = 0; pos < sizeof(random_data); ++pos) { in TEST()
408 for (size_t end = pos; end < sizeof(random_data); ++end) { in TEST()
410 Decode(random_data + pos, end - pos, &request); in TEST()
413 Decode(random_data + pos, end - pos, &response); in TEST()
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc206 brillo::Blob random_data; in TEST_F() local
210 random_data.push_back(dis(gen)); in TEST_F()
214 brillo::Blob data_to_test = i == 0 ? random_data : ones; in TEST_F()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp535 msg.random_data.Reinitialize("foo", 3); in TEST()
538 EXPECT_EQ(3U, deserialized->random_data.available_read()); in TEST()
539 EXPECT_EQ(0, memcmp("foo", deserialized->random_data.peek_read(), 3)); in TEST()
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp212 response->error = context_->AddRngEntropy(request.random_data.peek_read(), in AddRngEntropy()
213 request.random_data.available_read()); in AddRngEntropy()
Dandroid_keymaster_messages.cpp314 return random_data.SerializedSize(); in SerializedSize()
318 return random_data.Serialize(buf, end); in Serialize()
322 return random_data.Deserialize(buf_ptr, end); in Deserialize()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp225 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp268 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
DAndroidKeymaster4Device.cpp312 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp340 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h445 Buffer random_data; member
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp642 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()