Lines Matching refs:data

52   void GenerateHashTree(const std::vector<unsigned char>& data,  in GenerateHashTree()  argument
54 ASSERT_TRUE(builder->Initialize(data.size(), salt)); in GenerateHashTree()
55 ASSERT_TRUE(builder->Update(data.data(), data.size())); in GenerateHashTree()
85 std::vector<unsigned char> data(4096, 1); in TEST_F() local
87 GenerateHashTree(data, salt_hex); in TEST_F()
95 std::vector<unsigned char> data(128 * 4096, 0); in TEST_F() local
97 GenerateHashTree(data, salt_hex); in TEST_F()
105 std::vector<unsigned char> data(129 * 4096, 0xff); in TEST_F() local
107 GenerateHashTree(data, salt_hex); in TEST_F()
116 std::vector<unsigned char> data(256 * 4096); in TEST_F() local
118 std::fill_n(data.begin() + i * 4096, 4096, i); in TEST_F()
121 ASSERT_TRUE(builder->Initialize(data.size(), salt_hex)); in TEST_F()
124 while (offset < data.size()) { in TEST_F()
126 std::min<size_t>(rand() % 10 * 4096, data.size() - offset); in TEST_F()
127 ASSERT_TRUE(builder->Update(data.data() + offset, data_length)); in TEST_F()
139 std::vector<unsigned char> data(256 * 4096); in TEST_F() local
141 std::fill_n(data.begin() + i * 4096, 4096, i); in TEST_F()
144 ASSERT_TRUE(builder->Initialize(data.size(), salt_hex)); in TEST_F()
147 while (offset < data.size()) { in TEST_F()
148 size_t data_length = std::min<size_t>(rand() % 40960, data.size() - offset); in TEST_F()
149 ASSERT_TRUE(builder->Update(data.data() + offset, data_length)); in TEST_F()
161 std::vector<unsigned char> data(256 * 4096); in TEST_F() local
163 std::fill_n(data.begin() + i * 4096, 4096, i); in TEST_F()
166 ASSERT_TRUE(builder->Initialize(data.size(), salt_hex)); in TEST_F()
169 while (offset < data.size()) { in TEST_F()
170 size_t data_length = std::min<size_t>(rand() % 40960, data.size() - offset); in TEST_F()
171 ASSERT_TRUE(builder->Update(data.data() + offset, data_length)); in TEST_F()
186 std::vector<unsigned char> data(128 * 4096, 0xff); in TEST_F() local
191 GenerateHashTree(data, salt_hex); in TEST_F()