Home
last modified time | relevance | path

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

/test/vts-testcase/security/avb/
DVtsSecurityAvbTest.cpp145 static bool CalculateZeroDigest(const ShaHasher &hasher, size_t size, in CalculateZeroDigest() argument
149 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
218 const ShaHasher &hasher, in VerifyHashtree() argument
220 uint32_t digest_size = hasher.GetDigestSize(); in VerifyHashtree()
265 if (!CalculateZeroDigest(hasher, data_block_size, salt.data(), salt.size(), in VerifyHashtree()
288 if (!hasher.CalculateDigest(current_block->data(), current_block->size(), in VerifyHashtree()
469 std::unique_ptr<ShaHasher> hasher = CreateShaHasher(hash_algorithm); in TEST() local
470 ASSERT_TRUE(hasher); in TEST()
477 ASSERT_EQ(expected_digest.size(), hasher->GetDigestSize()); in TEST()
488 descriptor->tree_size, *hasher, expected_digest); in TEST()