Home
last modified time | relevance | path

Searched refs:RandBytes (Results 1 – 20 of 20) sorted by relevance

/external/libchrome/crypto/
Drandom_unittest.cc27 TEST(RandBytes, RandBytes) { in TEST() argument
29 crypto::RandBytes(base::WriteInto(&bytes, bytes.size()), bytes.size()); in TEST()
Drandom.cc13 void RandBytes(void *bytes, size_t length) { in RandBytes() function
17 base::RandBytes(bytes, length); in RandBytes()
Drandom.h17 CRYPTO_EXPORT void RandBytes(void *bytes, size_t length);
Dp224_spake.cc110 RandBytes(x_, sizeof(x_)); in P224EncryptedKeyExchange()
/external/libchrome/base/
Drand_util_unittest.cc44 TEST(RandUtilTest, RandBytes) { in TEST() argument
48 base::RandBytes(buffer, buffer_size); in TEST()
57 base::RandBytes(nullptr, 0); in TEST()
165 base::RandBytes(buffer.get(), kTestBufferSize); in TEST()
Drand_util.cc21 RandBytes(&number, sizeof(number)); in RandUint64()
78 RandBytes(WriteInto(&result, length + 1), length); in RandBytesAsString()
Drand_util_posix.cc52 void RandBytes(void* output, size_t output_length) { in RandBytes() function
Dunguessable_token.cc25 base::RandBytes(&token, sizeof(token)); in Create()
Drand_util.h40 BASE_EXPORT void RandBytes(void* output, size_t output_length);
Dguid.cc47 base::RandBytes(&sixteen_bytes, sizeof(sixteen_bytes)); in GenerateGUID()
/external/libchrome/mojo/public/cpp/base/
Dbig_string_unittest.cc35 base::RandBytes(&in[0], kLargeStringSize); in TEST()
Dstring16_unittest.cc51 base::RandBytes(&in[0], kLargeStringSize); in TEST()
Dbig_buffer_unittest.cc53 base::RandBytes(data.data(), kLargeDataSize); in TEST()
/external/libbrillo/brillo/
Dfile_utils.cc138 base::RandBytes(buffer, arraysize(buffer)); in GetRandomSuffix()
Dfile_utils_unittest.cc30 base::RandBytes(buffer, arraysize(buffer)); in GetRandomSuffix()
/external/libbrillo/brillo/streams/
Dfile_stream_unittest.cc713 base::RandBytes(buffer.data(), buffer.size()); in TEST_F()
741 base::RandBytes(buffer.data(), buffer.size()); in TEST_F()
1002 base::RandBytes(buffer.data(), buffer.size()); in TEST_F()
/external/libchrome/mojo/core/
Dnode_controller.cc51 base::RandBytes(out, sizeof(T)); in GenerateRandomName()
56 crypto::RandBytes(out, sizeof(T));
Dmessage_unittest.cc707 base::RandBytes(test_payload.data(), kTestMessagePayloadSize); in TEST_F()
/external/libchrome/mojo/core/ports/
Dnode.cc55 base::RandBytes(cache_, sizeof(PortName) * kRandomNameCacheSize); in GenerateRandomPortName()
57 crypto::RandBytes(cache_, sizeof(PortName) * kRandomNameCacheSize); in GenerateRandomPortName()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc847 RandBytes(garbage.get(), minsize); in TEST()