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

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed)

Created:
6 years, 8 months ago by Eran Messeri
Modified:
6 years, 7 months ago
Reviewers:
wtc, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Certificate Transparency: Parse Signed Tree Heads and validate them This change lays the groundwork for fetching STHs from CT logs and using them for proof inclusion validation. This change contains: * A SignedTreeHead struct representing a signed tree head. * CTLogResponseParser - a class to parse the STH returned by the log in JSON format and fill in SignedTreeHead. * An encoding function to create the binary blob over which the signature in the STH applies. * Addition to the CTLogVerifier class to validate and store provided STHs, which uses the encoding function mentioned above. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269887

Patch Set 1 #

Patch Set 2 : Small type fixes #

Total comments: 8

Patch Set 3 : Addressing review comments #

Patch Set 4 : Explicitly exporting symbol #

Total comments: 16

Patch Set 5 : Addressing review comments #

Patch Set 6 : Merging with master #

Total comments: 8

Patch Set 7 : Addressing more of Ryan's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -14 lines) Patch
A net/cert/ct_log_response_parser.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A net/cert/ct_log_response_parser.cc View 1 2 3 4 5 6 1 chunk +140 lines, -0 lines 0 comments Download
A net/cert/ct_log_response_parser_unittest.cc View 1 2 3 4 5 6 1 chunk +106 lines, -0 lines 0 comments Download
M net/cert/ct_log_verifier.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M net/cert/ct_log_verifier.cc View 1 2 3 4 3 chunks +31 lines, -10 lines 0 comments Download
M net/cert/ct_log_verifier_nss.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cert/ct_log_verifier_openssl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/ct_log_verifier_unittest.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M net/cert/ct_serialization.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M net/cert/ct_serialization.cc View 1 2 3 4 3 chunks +21 lines, -3 lines 0 comments Download
M net/cert/ct_serialization_unittest.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M net/cert/signed_certificate_timestamp.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M net/cert/signed_certificate_timestamp.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
A net/cert/signed_tree_head.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M net/test/ct_test_util.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M net/test/ct_test_util.cc View 1 2 3 4 5 6 3 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Eran Messeri
Another round of Certificate Transparency-related changes for you to enjoy! This CL just lays out ...
6 years, 8 months ago (2014-04-09 16:03:40 UTC) #1
Ryan Sleevi
A little confused why the STH is added to the CTLogVerifier. Can you add a ...
6 years, 8 months ago (2014-04-09 18:23:10 UTC) #2
Eran Messeri
My goal was to have the CTLogVerifier ultimately verify inclusion proofs. To do that it ...
6 years, 8 months ago (2014-04-09 20:49:13 UTC) #3
Eran Messeri
Addressed all comments, PTAL. https://codereview.chromium.org/230713002/diff/20001/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/230713002/diff/20001/net/cert/ct_log_response_parser.cc#newcode22 net/cert/ct_log_response_parser.cc:22: base::Value* json = json_reader.Read(json_sth); On ...
6 years, 8 months ago (2014-04-10 21:08:28 UTC) #4
Eran Messeri
Ping?
6 years, 8 months ago (2014-04-24 14:02:14 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/230713002/diff/60001/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/230713002/diff/60001/net/cert/ct_log_response_parser.cc#newcode41 net/cert/ct_log_response_parser.cc:41: &JsonSignedTreeHead::tree_head_signature); SECURITY: Should there be any customer converters attached ...
6 years, 8 months ago (2014-04-25 23:33:19 UTC) #6
Eran Messeri
Thanks for the quick review! Addressed all comments, PTAL. https://codereview.chromium.org/230713002/diff/60001/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/230713002/diff/60001/net/cert/ct_log_response_parser.cc#newcode41 net/cert/ct_log_response_parser.cc:41: ...
6 years, 7 months ago (2014-04-29 15:22:23 UTC) #7
Ryan Sleevi
LGTM! Sorry for the delays - feel free to ping me (email or chat) if ...
6 years, 7 months ago (2014-05-08 01:11:54 UTC) #8
Eran Messeri
https://codereview.chromium.org/230713002/diff/100001/net/cert/ct_log_response_parser.cc File net/cert/ct_log_response_parser.cc (right): https://codereview.chromium.org/230713002/diff/100001/net/cert/ct_log_response_parser.cc#newcode123 net/cert/ct_log_response_parser.cc:123: if (!IsJsonSTHStructurallyValid(parsed_sth)) { On 2014/05/08 01:11:54, Ryan Sleevi wrote: ...
6 years, 7 months ago (2014-05-12 20:33:55 UTC) #9
Eran Messeri
The CQ bit was checked by eranm@chromium.org
6 years, 7 months ago (2014-05-12 20:34:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eranm@chromium.org/230713002/120001
6 years, 7 months ago (2014-05-12 20:34:34 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-12 21:56:35 UTC) #12
Message was sent while issue was closed.
Change committed as 269887

Powered by Google App Engine
This is Rietveld 408576698