Chromium Code Reviews| Index: net/cert/ct_serialization.h |
| diff --git a/net/cert/ct_serialization.h b/net/cert/ct_serialization.h |
| index f183247469f9e217e017894b425c8af095127817..abcacd1360963f641ac96107c1992c0a4c82f834 100644 |
| --- a/net/cert/ct_serialization.h |
| +++ b/net/cert/ct_serialization.h |
| @@ -10,6 +10,7 @@ |
| #include "base/strings/string_piece.h" |
| #include "net/base/net_export.h" |
| +#include "net/cert/merkle_tree_leaf.h" |
| #include "net/cert/signed_certificate_timestamp.h" |
| #include "net/cert/signed_tree_head.h" |
| @@ -35,6 +36,12 @@ NET_EXPORT_PRIVATE bool DecodeDigitallySigned(base::StringPiece* input, |
| NET_EXPORT_PRIVATE bool EncodeLogEntry(const LogEntry& input, |
| std::string* output); |
| +// Encodes the Merkle tree |leaf| into |output|. |
| +// These bytes can be hashed for use with inclusion proof fetching. |
| +// Note that the log ID is not serialized. |
| +NET_EXPORT_PRIVATE bool EncodeTreeLeaf(const MerkleTreeLeaf& leaf, |
|
Eran Messeri
2016/05/04 10:29:23
NET_EXPORT as I expect it'll be used from componen
Rob Percival
2016/05/05 15:45:31
Done.
|
| + std::string* output); |
| + |
| // Encodes the data signed by a Signed Certificate Timestamp (SCT) into |
| // |output|. The signature included in the SCT is then verified over these |
| // bytes. |