Home | History | Annotate | Download | only in crypto

Lines Matching refs:bytes

15 // Currently, that means the bytes cannot be all the same (e.g. all zeros).
16 bool IsTrivial(const std::string& bytes) {
17 for (size_t i = 0; i < bytes.size(); i++) {
18 if (bytes[i] != bytes[0]) {
26 std::string bytes(16, '\0');
27 crypto::RandBytes(base::WriteInto(&bytes, bytes.size()), bytes.size());
28 EXPECT_TRUE(!IsTrivial(bytes));