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

Issue 1945183005: Adds function for generating MerkleTreeLeaf hash. (Closed)

Created:
4 years, 7 months ago by Rob Percival
Modified:
4 years, 7 months ago
Reviewers:
eroman, Eran Messeri
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ct_merkle_tree_leaf_encode
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds function for generating MerkleTreeLeaf hash. This will be used when requesting audit proofs from Certificate Transparency logs. BUG=608868 Committed: https://crrev.com/34ef59d7bcd81a747334eadb0aac0dbac54ef1a5 Cr-Commit-Position: refs/heads/master@{#392703}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes Hash function from method to free function #

Patch Set 3 : Addresses review comments #

Total comments: 9

Patch Set 4 : Addresses eroman review comments #

Total comments: 8

Patch Set 5 : Addresses final eroman review comments #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -0 lines) Patch
M net/cert/merkle_tree_leaf.h View 1 2 3 5 1 chunk +4 lines, -0 lines 0 comments Download
M net/cert/merkle_tree_leaf.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M net/cert/merkle_tree_leaf_unittest.cc View 1 2 3 4 5 3 chunks +52 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (9 generated)
Rob Percival
4 years, 7 months ago (2016-05-05 15:36:42 UTC) #2
Eran Messeri
Two minor comments, otherwise LGTM. https://codereview.chromium.org/1945183005/diff/1/net/cert/merkle_tree_leaf.cc File net/cert/merkle_tree_leaf.cc (right): https://codereview.chromium.org/1945183005/diff/1/net/cert/merkle_tree_leaf.cc#newcode25 net/cert/merkle_tree_leaf.cc:25: *out = crypto::SHA256HashString("\x00" + ...
4 years, 7 months ago (2016-05-05 16:03:27 UTC) #3
Rob Percival
https://codereview.chromium.org/1945183005/diff/1/net/cert/merkle_tree_leaf.cc File net/cert/merkle_tree_leaf.cc (right): https://codereview.chromium.org/1945183005/diff/1/net/cert/merkle_tree_leaf.cc#newcode25 net/cert/merkle_tree_leaf.cc:25: *out = crypto::SHA256HashString("\x00" + leaf_in_tls_format); On 2016/05/05 16:03:26, Eran ...
4 years, 7 months ago (2016-05-05 16:26:37 UTC) #4
Rob Percival
4 years, 7 months ago (2016-05-05 16:26:57 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945183005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945183005/40001
4 years, 7 months ago (2016-05-05 17:58:23 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-05 19:45:13 UTC) #10
eroman
https://codereview.chromium.org/1945183005/diff/40001/net/cert/merkle_tree_leaf.cc File net/cert/merkle_tree_leaf.cc (right): https://codereview.chromium.org/1945183005/diff/40001/net/cert/merkle_tree_leaf.cc#newcode26 net/cert/merkle_tree_leaf.cc:26: *out = crypto::SHA256HashString("\x00" + leaf_in_tls_format); This does not behave ...
4 years, 7 months ago (2016-05-06 23:51:22 UTC) #11
Rob Percival
https://codereview.chromium.org/1945183005/diff/40001/net/cert/merkle_tree_leaf.cc File net/cert/merkle_tree_leaf.cc (right): https://codereview.chromium.org/1945183005/diff/40001/net/cert/merkle_tree_leaf.cc#newcode26 net/cert/merkle_tree_leaf.cc:26: *out = crypto::SHA256HashString("\x00" + leaf_in_tls_format); On 2016/05/06 23:51:22, eroman ...
4 years, 7 months ago (2016-05-09 12:36:05 UTC) #12
eroman
https://codereview.chromium.org/1945183005/diff/40001/net/cert/merkle_tree_leaf_unittest.cc File net/cert/merkle_tree_leaf_unittest.cc (right): https://codereview.chromium.org/1945183005/diff/40001/net/cert/merkle_tree_leaf_unittest.cc#newcode40 net/cert/merkle_tree_leaf_unittest.cc:40: return memcmp(arg.data(), bytes.data(), bytes.size()) == 0; On 2016/05/09 12:36:05, ...
4 years, 7 months ago (2016-05-09 16:44:02 UTC) #13
eroman
lgtm https://codereview.chromium.org/1945183005/diff/60001/net/cert/merkle_tree_leaf.cc File net/cert/merkle_tree_leaf.cc (right): https://codereview.chromium.org/1945183005/diff/60001/net/cert/merkle_tree_leaf.cc#newcode26 net/cert/merkle_tree_leaf.cc:26: *out = crypto::SHA256HashString('\0' + leaf_in_tls_format); Note: since EncodeTreeLeaf() ...
4 years, 7 months ago (2016-05-09 19:01:22 UTC) #14
Rob Percival
https://codereview.chromium.org/1945183005/diff/60001/net/cert/merkle_tree_leaf.cc File net/cert/merkle_tree_leaf.cc (right): https://codereview.chromium.org/1945183005/diff/60001/net/cert/merkle_tree_leaf.cc#newcode26 net/cert/merkle_tree_leaf.cc:26: *out = crypto::SHA256HashString('\0' + leaf_in_tls_format); On 2016/05/09 19:01:22, eroman ...
4 years, 7 months ago (2016-05-09 19:55:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945183005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945183005/100001
4 years, 7 months ago (2016-05-10 17:35:30 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/91932)
4 years, 7 months ago (2016-05-10 17:56:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945183005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945183005/100001
4 years, 7 months ago (2016-05-10 20:09:14 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-10 20:42:03 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 20:43:35 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/34ef59d7bcd81a747334eadb0aac0dbac54ef1a5
Cr-Commit-Position: refs/heads/master@{#392703}

Powered by Google App Engine
This is Rietveld 408576698