/external/libchrome/crypto/ |
random.cc | 13 void RandBytes(void *bytes, size_t length) { 14 // It's OK to call base::RandBytes(), because it's already strongly random. 17 base::RandBytes(bytes, length);
|
random.h | 17 CRYPTO_EXPORT void RandBytes(void *bytes, size_t length);
|
random_unittest.cc | 27 TEST(RandBytes, RandBytes) { 29 crypto::RandBytes(base::WriteInto(&bytes, bytes.size()), bytes.size());
|
p224_spake.cc | 110 RandBytes(x_, sizeof(x_));
|
/external/libchrome/base/ |
unguessable_token.cc | 23 // Use base::RandBytes instead of crypto::RandBytes, because crypto calls the 25 base::RandBytes(&token, sizeof(token));
|
rand_util.cc | 21 RandBytes(&number, sizeof(number)); 78 RandBytes(WriteInto(&result, length + 1), length);
|
rand_util.h | 39 // crypto::RandBytes instead to ensure the requirement is easily discoverable. 40 BASE_EXPORT void RandBytes(void* output, size_t output_length); 45 // Note that this is a variation of |RandBytes| with a different return type. 50 // crypto::RandBytes instead to ensure the requirement is easily discoverable.
|
rand_util_posix.cc | 52 void RandBytes(void* output, size_t output_length) {
|
rand_util_unittest.cc | 44 TEST(RandUtilTest, RandBytes) { 48 base::RandBytes(buffer, buffer_size); 55 // Verify that calling base::RandBytes with an empty buffer doesn't fail. 57 base::RandBytes(nullptr, 0); 153 // Benchmark test for RandBytes(). Disabled since it's intentionally slow and 154 // does not test anything that isn't already tested by the existing RandBytes() 157 // Benchmark the performance of |kTestIterations| of RandBytes() using a 165 base::RandBytes(buffer.get(), kTestBufferSize); 168 LOG(INFO) << "RandBytes(" << kTestBufferSize << ") took: "
|
guid.cc | 45 // Use base::RandBytes instead of crypto::RandBytes, because crypto calls the 47 base::RandBytes(&sixteen_bytes, sizeof(sixteen_bytes));
|
/external/libchrome/mojo/public/cpp/base/ |
big_string_unittest.cc | 35 base::RandBytes(&in[0], kLargeStringSize);
|
string16_unittest.cc | 51 base::RandBytes(&in[0], kLargeStringSize);
|
big_buffer_unittest.cc | 53 base::RandBytes(data.data(), kLargeDataSize);
|
/external/libbrillo/brillo/ |
file_utils.cc | 138 base::RandBytes(buffer, arraysize(buffer));
|
file_utils_unittest.cc | 30 base::RandBytes(buffer, arraysize(buffer));
|
/external/libbrillo/brillo/streams/ |
file_stream_unittest.cc | 713 base::RandBytes(buffer.data(), buffer.size()); 741 base::RandBytes(buffer.data(), buffer.size()); [all...] |
/external/libchrome/mojo/core/ |
node_controller.cc | 51 base::RandBytes(out, sizeof(T)); 56 crypto::RandBytes(out, sizeof(T)); [all...] |
message_unittest.cc | 707 base::RandBytes(test_payload.data(), kTestMessagePayloadSize); [all...] |
/external/libchrome/mojo/core/ports/ |
node.cc | 41 // RandBytes may have significant per-call overhead. 55 base::RandBytes(cache_, sizeof(PortName) * kRandomNameCacheSize); 57 crypto::RandBytes(cache_, sizeof(PortName) * kRandomNameCacheSize); [all...] |
/external/libchrome/base/metrics/ |
persistent_memory_allocator_unittest.cc | 847 RandBytes(garbage.get(), minsize); [all...] |