Searched refs:hasher (Results 1 – 1 of 1) sorted by relevance
/test/vts-testcase/security/avb/ |
D | VtsSecurityAvbTest.cpp | 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() [all …]
|