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

Unified Diff: net/cert/merkle_tree_leaf.h

Issue 1945183005: Adds function for generating MerkleTreeLeaf hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ct_merkle_tree_leaf_encode
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | net/cert/merkle_tree_leaf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/merkle_tree_leaf.h
diff --git a/net/cert/merkle_tree_leaf.h b/net/cert/merkle_tree_leaf.h
index efbe185713c6879afbe89c79ebfeb377e48f70fc..8f314f56a70641142300f8c6d556ab349178966b 100644
--- a/net/cert/merkle_tree_leaf.h
+++ b/net/cert/merkle_tree_leaf.h
@@ -42,6 +42,10 @@ NET_EXPORT bool GetMerkleTreeLeaf(const X509Certificate* cert,
const SignedCertificateTimestamp* sct,
MerkleTreeLeaf* merkle_tree_leaf);
+// Sets |*out| to the hash of the Merkle |tree_leaf|, as defined in RFC6962.
+// Returns true if the hash was generated, false if an error occurred.
+NET_EXPORT bool Hash(const MerkleTreeLeaf& tree_leaf, std::string* out);
+
} // namespace ct
} // namespace net
« no previous file with comments | « no previous file | net/cert/merkle_tree_leaf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698