Lines Matching refs:hasher
146 static bool CalculateZeroDigest(const ShaHasher &hasher, size_t size, in CalculateZeroDigest() argument
150 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
219 const ShaHasher &hasher, in VerifyHashtree() argument
221 uint32_t digest_size = hasher.GetDigestSize(); in VerifyHashtree()
266 if (!CalculateZeroDigest(hasher, data_block_size, salt.data(), salt.size(), in VerifyHashtree()
289 if (!hasher.CalculateDigest(current_block->data(), current_block->size(), in VerifyHashtree()
506 std::unique_ptr<ShaHasher> hasher = CreateShaHasher(hash_algorithm); in TEST() local
507 ASSERT_TRUE(hasher); in TEST()
514 ASSERT_EQ(expected_digest.size(), hasher->GetDigestSize()); in TEST()
522 out_digest.resize(hasher->GetDigestSize()); in TEST()
523 ASSERT_TRUE(hasher->CalculateDigest( in TEST()
560 std::unique_ptr<ShaHasher> hasher = CreateShaHasher(hash_algorithm); in TEST() local
561 ASSERT_TRUE(hasher); in TEST()
568 ASSERT_EQ(expected_digest.size(), hasher->GetDigestSize()); in TEST()
579 descriptor->tree_size, *hasher, expected_digest); in TEST()