Index: net/cert/ct_serialization.h |
diff --git a/net/cert/ct_serialization.h b/net/cert/ct_serialization.h |
index 19dc0873f4f1f809d256dae7d3fc322b2e95e9c4..f183247469f9e217e017894b425c8af095127817 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,13 @@ NET_EXPORT_PRIVATE bool EncodeV1SCTSignedData( |
const std::string& extensions, |
std::string* output); |
+// Encodes the data signed by a Signed Tree Head (STH) |signed_tree_head| into |
+// |output|. The signature included in the |signed_tree_head| can then be |
+// verified over these bytes. |
+NET_EXPORT_PRIVATE void EncodeTreeHeadSignature( |
+ const SignedTreeHead& 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|. |