Home
last modified time | relevance | path

Searched refs:random_data (Results 1 – 13 of 13) 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.cc196 brillo::Blob random_data; in TEST_F() local
200 random_data.push_back(dis(gen)); in TEST_F()
204 brillo::Blob data_to_test = i == 0 ? random_data : ones; in TEST_F()
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp503 return random_data.SerializedSize(); in SerializedSize()
507 return random_data.Serialize(buf, end); in Serialize()
511 return random_data.Deserialize(buf_ptr, end); in Deserialize()
Dandroid_keymaster.cpp303 response->error = context_->AddRngEntropy(request.random_data.peek_read(), in AddRngEntropy()
304 request.random_data.available_read()); in AddRngEntropy()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp722 msg.random_data.Reinitialize("foo", 3); in TEST()
725 EXPECT_EQ(3U, deserialized->random_data.available_read()); in TEST()
726 EXPECT_EQ(0, memcmp("foo", deserialized->random_data.peek_read(), 3)); in TEST()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp110 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
/system/keymaster/ng/
DAndroidKeyMintDevice.cpp244 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
DAndroidKeymaster3Device.cpp269 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
DAndroidKeymaster4Device.cpp308 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp225 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.h557 Buffer random_data; member
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp590 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()