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 #
Messages
Total messages: 19 (7 generated)
|