Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: net/cert/merkle_audit_proof.h

Issue 2182533002: Adds a VerifyAuditProof method to CTLogVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses some of Ryan Sleevi's comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/cert/merkle_audit_proof.h
diff --git a/net/cert/merkle_audit_proof.h b/net/cert/merkle_audit_proof.h
index b214891ee145ee74218f488d8d21e1965fd5c7dd..538bad2b38727ee6fb5bac9dfa768b1b15849391 100644
--- a/net/cert/merkle_audit_proof.h
+++ b/net/cert/merkle_audit_proof.h
@@ -26,12 +26,16 @@ NET_EXPORT uint64_t CalculateAuditPathLength(uint64_t leaf_index,
struct NET_EXPORT MerkleAuditProof {
MerkleAuditProof();
Ryan Sleevi 2016/08/25 18:56:24 FUTURE CL: Should we still have this ctor? Would i
Rob Percival 2016/10/03 17:39:26 LogDnsClient currently makes use of it, as it popu
MerkleAuditProof(uint64_t leaf_index,
+ uint64_t tree_size,
const std::vector<std::string>& audit_path);
~MerkleAuditProof();
// Index of the tree leaf in the log.
uint64_t leaf_index = 0;
+ // Number of leaves in the log's tree.
+ uint64_t tree_size = 0;
+
// Audit path nodes.
std::vector<std::string> nodes;
};

Powered by Google App Engine
This is Rietveld 408576698