• Home
  • Raw
  • Download

Lines Matching refs:leaf

121   size_t leaf;  member
193 size_t leaf, in VerifyAuditProof() argument
198 return log.VerifyAuditProof(ct::MerkleAuditProof(leaf, tree_size, proof), in VerifyAuditProof()
218 size_t leaf, in CheckVerifyAuditProof() argument
224 VerifyAuditProof(log, leaf, tree_size, proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
225 << "proof for leaf " << leaf << " did not pass verification"; in CheckVerifyAuditProof()
227 VerifyAuditProof(log, leaf - 1, tree_size, proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
230 VerifyAuditProof(log, leaf + 1, tree_size, proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
233 VerifyAuditProof(log, leaf ^ 2, tree_size, proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
236 VerifyAuditProof(log, leaf, tree_size * 2, proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
238 EXPECT_FALSE(VerifyAuditProof(log, leaf / 2, tree_size / 2, proof, root_hash, in CheckVerifyAuditProof()
242 VerifyAuditProof(log, leaf, tree_size / 2, proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
244 EXPECT_FALSE(VerifyAuditProof(log, leaf, tree_size, proof, GetEmptyTreeHash(), in CheckVerifyAuditProof()
254 EXPECT_FALSE(VerifyAuditProof(log, leaf, tree_size, wrong_proof, root_hash, in CheckVerifyAuditProof()
262 VerifyAuditProof(log, leaf, tree_size, wrong_proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
267 VerifyAuditProof(log, leaf, tree_size, wrong_proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
273 EXPECT_FALSE(VerifyAuditProof(log, leaf, tree_size, wrong_proof, root_hash, in CheckVerifyAuditProof()
282 VerifyAuditProof(log, leaf, tree_size, wrong_proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
287 VerifyAuditProof(log, leaf, tree_size, wrong_proof, root_hash, leaf_hash)) in CheckVerifyAuditProof()
557 CheckVerifyAuditProof(*log_, test_vector.leaf, test_vector.tree_size, proof, in TEST_P()
559 HexToBytes(kLeafHashes[test_vector.leaf])); in TEST_P()
585 std::string HashLeaf(const std::string& leaf) { in HashLeaf() argument
594 hash->Update(leaf.data(), leaf.size()); in HashLeaf()
739 for (size_t leaf = 0; leaf < tree_size; ++leaf) { in TEST_P() local
740 SCOPED_TRACE(leaf); in TEST_P()
742 rfc6962::CreateAuditProof(tree_leaves.data(), tree_size, leaf); in TEST_P()
745 CheckVerifyAuditProof(*log_, leaf, tree_size, proof, root, in TEST_P()
746 rfc6962::HashLeaf(tree_leaves[leaf])); in TEST_P()