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

Unified Diff: net/cert/ct_serialization.h

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly exporting symbol Created 6 years, 8 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/ct_serialization.h
diff --git a/net/cert/ct_serialization.h b/net/cert/ct_serialization.h
index 19dc0873f4f1f809d256dae7d3fc322b2e95e9c4..a3855c92e567b648926e76c8edd3454a363df8e1 100644
--- a/net/cert/ct_serialization.h
+++ b/net/cert/ct_serialization.h
@@ -11,6 +11,7 @@
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
#include "net/cert/signed_certificate_timestamp.h"
+#include "net/cert/signed_tree_head.h"
namespace net {
@@ -48,6 +49,11 @@ NET_EXPORT_PRIVATE bool EncodeV1SCTSignedData(
const std::string& extensions,
std::string* output);
+// Encodes the data signed by a Signed Tree Head (STH) |sth| into |output|.
+// The signature included in the |sth| can then be verified over these bytes.
+NET_EXPORT_PRIVATE void EncodeTreeHeadSignature(const SignedTreeHead& sth,
Ryan Sleevi 2014/04/25 23:33:19 s/sth/signed_tree_head/ or just tree_head (which
Eran Messeri 2014/04/29 15:22:24 Done - changed sth to signed_tree_head.
+ std::string* output);
+
// Decode a list of Signed Certificate Timestamps
// (SignedCertificateTimestampList as defined in RFC6962): from a single
// string in |input| to a vector of individually-encoded SCTs |output|.

Powered by Google App Engine
This is Rietveld 408576698