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

Issue 1912153004: [blimp] Change to use SHA-256 instead of SHA-1 for unique ids (Closed)

Created:
4 years, 8 months ago by nyquist
Modified:
4 years, 8 months ago
Reviewers:
Wez, davidben
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[blimp] Change to use SHA-256 instead of SHA-1 for unique ids Blimp currently uses SHA-1 to uniquely identify resources. There was no specific reason for this other than the goal of having a unique ID, so this changes it to instead use SHA-256 from //crypto, since it is in general better. This does however change the length of the hash from 20 bytes to 32 bytes. This concern was raised as a drive-by comment on https://codereview.chromium.org/1867653002/ This CL also adds functionality to verify that a specific BlobId has the correct length, and removes all references to SHA1 outside of the //blimp/common/blob_cache/id_util.[cc|h] files. In addition, this CL adds a test to ensure that there is certainty that this unique ID only ever changes intentionally. BUG=597807, 600719, 603353 Committed: https://crrev.com/5344a6eebfbd65e6a86f2274c69e74ac6ccfe138 Cr-Commit-Position: refs/heads/master@{#389608}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Addressed comments from Wez #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -29 lines) Patch
M blimp/common/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M blimp/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M blimp/common/blob_cache/id_util.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M blimp/common/blob_cache/id_util.cc View 1 1 chunk +11 lines, -9 lines 0 comments Download
A blimp/common/blob_cache/id_util_unittest.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M blimp/common/blob_cache/in_memory_blob_cache.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M blimp/common/compositor/webp_decoder.cc View 1 4 chunks +5 lines, -9 lines 0 comments Download
M blimp/engine/renderer/engine_image_serialization_processor.cc View 1 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
nyquist
wez, davidben: PTAL
4 years, 8 months ago (2016-04-22 22:02:40 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912153004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912153004/1
4 years, 8 months ago (2016-04-22 22:02:51 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/172294)
4 years, 8 months ago (2016-04-22 22:12:37 UTC) #6
Wez
https://codereview.chromium.org/1912153004/diff/1/blimp/common/blob_cache/id_util.h File blimp/common/blob_cache/id_util.h (right): https://codereview.chromium.org/1912153004/diff/1/blimp/common/blob_cache/id_util.h#newcode17 blimp/common/blob_cache/id_util.h:17: // to have length crypto::kSHA256Length. The length of the ...
4 years, 8 months ago (2016-04-23 00:08:53 UTC) #7
nyquist
wez: PTAL https://codereview.chromium.org/1912153004/diff/1/blimp/common/blob_cache/id_util.h File blimp/common/blob_cache/id_util.h (right): https://codereview.chromium.org/1912153004/diff/1/blimp/common/blob_cache/id_util.h#newcode17 blimp/common/blob_cache/id_util.h:17: // to have length crypto::kSHA256Length. On 2016/04/23 ...
4 years, 8 months ago (2016-04-25 08:11:17 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912153004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912153004/20001
4 years, 8 months ago (2016-04-25 08:11:25 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/172544)
4 years, 8 months ago (2016-04-25 08:18:15 UTC) #12
Wez
lgtm
4 years, 8 months ago (2016-04-25 18:43:02 UTC) #13
davidben
lgtm
4 years, 8 months ago (2016-04-25 18:49:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912153004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912153004/20001
4 years, 8 months ago (2016-04-25 23:05:14 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-25 23:29:35 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 23:32:11 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5344a6eebfbd65e6a86f2274c69e74ac6ccfe138
Cr-Commit-Position: refs/heads/master@{#389608}

Powered by Google App Engine
This is Rietveld 408576698