Lines Matching refs:data
91 typedef int (*UpdateFunc)(CTX_TYPE *sha, const void *data, size_t len);
150 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
266 if (!CalculateZeroDigest(hasher, data_block_size, salt.data(), salt.size(), in VerifyHashtree()
267 padded_zero_digest.data())) { in VerifyHashtree()
276 pread64(image_fd, data_block.data(), data_block.size(), image_offset)); in VerifyHashtree()
288 level->calculating_hash_block.data() + level->calculating_offset; in VerifyHashtree()
289 if (!hasher.CalculateDigest(current_block->data(), current_block->size(), in VerifyHashtree()
290 salt.data(), salt.size(), current_digest)) { in VerifyHashtree()
304 level->calculating_hash_block.data() + level->calculating_offset, 0, in VerifyHashtree()
318 pread64(image_fd, tree_block.data(), tree_block.size(), in VerifyHashtree()
332 memcmp(tree_block.data() + offset, padded_zero_digest.data(), in VerifyHashtree()
336 if (memcmp(tree_block.data() + offset, in VerifyHashtree()
337 level->calculating_hash_block.data() + offset, in VerifyHashtree()
518 ASSERT_TRUE(android::base::ReadFully(fd, boot_partition_vector.data(), in TEST()
524 boot_partition_vector.data(), descriptor->image_size, in TEST()
525 salt.data(), descriptor->salt_len, out_digest.data())) in TEST()
640 target.spec.target_type, target.data.c_str()); in TEST()
662 size_t begin_pos = NextWord(target.data, &next_pos); in TEST()
665 EXPECT_EQ(target.data.compare(begin_pos, next_pos - begin_pos, in TEST()
674 size_t begin_pos = NextWord(target.data, &next_pos); in TEST()
677 std::stoul(target.data.substr(begin_pos, next_pos - begin_pos)); in TEST()
695 size_t begin_pos = NextWord(target.data, &next_pos); in TEST()
697 const std::string param_name(target.data, begin_pos, next_pos - begin_pos); in TEST()
701 begin_pos = NextWord(target.data, &next_pos); in TEST()
704 target.data.substr(begin_pos, next_pos - begin_pos); in TEST()
721 ASSERT_EQ(NextWord(target.data, &next_pos), std::string::npos); in TEST()