Searched refs:hasher (Results 1 – 1 of 1) sorted by relevance
/test/vts-testcase/security/avb/ |
D | VtsSecurityAvbTest.cpp | 154 static bool CalculateZeroDigest(const ShaHasher &hasher, size_t size, in CalculateZeroDigest() argument 158 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest() 227 const ShaHasher &hasher, in VerifyHashtree() argument 229 uint32_t digest_size = hasher.GetDigestSize(); in VerifyHashtree() 274 if (!CalculateZeroDigest(hasher, data_block_size, salt.data(), salt.size(), in VerifyHashtree() 297 if (!hasher.CalculateDigest(current_block->data(), current_block->size(), in VerifyHashtree() 654 std::unique_ptr<ShaHasher> hasher = CreateShaHasher(hash_algorithm); in TEST() local 655 ASSERT_TRUE(hasher); in TEST() 662 ASSERT_EQ(expected_digest.size(), hasher->GetDigestSize()); in TEST() 670 out_digest.resize(hasher->GetDigestSize()); in TEST() [all …]
|