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

Issue 189373010: Get rid of WTF::SHA1. (Closed)

Created:
6 years, 9 months ago by jww
Modified:
6 years, 8 months ago
CC:
blink-reviews, caseq+blink_chromium.org, Mikhail, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Get rid of WTF::SHA1. WTF::SHA1 is redundant now with WebCrypto support in place, and Blink probably should not roll its own crypto. This removes WTF::SHA1 and replaces its consumers with WebCrypto calls. BUG=349514 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170897

Patch Set 1 #

Patch Set 2 : Created a more general CryptoUtilities computeDigest function #

Patch Set 3 : Rebase on ToT #

Total comments: 17

Patch Set 4 : Use new digest-by-chunk API and many other fixes #

Total comments: 14

Patch Set 5 : Fixes from abarth comments #

Patch Set 6 : Rebase on ToT and fixed header guard collision. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -410 lines) Patch
M Source/core/frame/csp/CSPSourceList.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/csp/CSPSourceList.cpp View 1 2 3 4 5 1 chunk +0 lines, -29 lines 0 comments Download
M Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 2 3 5 chunks +7 lines, -21 lines 0 comments Download
M Source/core/inspector/DOMPatchSupport.cpp View 1 2 3 4 3 chunks +19 lines, -19 lines 0 comments Download
M Source/modules/websockets/WebSocketHandshake.cpp View 1 2 3 4 5 2 chunks +10 lines, -8 lines 0 comments Download
A Source/platform/Crypto.h View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
A Source/platform/Crypto.cpp View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/network/ContentSecurityPolicyParsers.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
D Source/wtf/SHA1.h View 1 2 1 chunk +0 lines, -80 lines 0 comments Download
D Source/wtf/SHA1.cpp View 1 chunk +0 lines, -178 lines 0 comments Download
D Source/wtf/SHA1Test.cpp View 1 chunk +0 lines, -70 lines 0 comments Download
M Source/wtf/wtf.gypi View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
jww
6 years, 9 months ago (2014-03-07 19:18:01 UTC) #1
eroman
Thanks The new way of calling the functions is quite a bit more verbose. I ...
6 years, 9 months ago (2014-03-07 19:52:33 UTC) #2
jww
On 2014/03/07 19:52:33, eroman wrote: > Thanks > > The new way of calling the ...
6 years, 9 months ago (2014-03-11 20:48:58 UTC) #3
jww
pfeldman@, would you mind taking a look at this CL, in particular Source/core/inspector/DOMPatchSupport.cpp? eroman@ pointed ...
6 years, 9 months ago (2014-03-11 20:50:46 UTC) #4
eroman
The difference is that now it has to build a complete string to pass in ...
6 years, 9 months ago (2014-03-11 20:55:29 UTC) #5
jww
On 2014/03/11 20:55:29, eroman wrote: > The difference is that now it has to build ...
6 years, 9 months ago (2014-03-11 21:06:40 UTC) #6
pfeldman
On 2014/03/11 20:50:46, jww wrote: > pfeldman@, would you mind taking a look at this ...
6 years, 9 months ago (2014-03-12 04:38:18 UTC) #7
jww
On Mar 11, 2014 9:38 PM, <pfeldman@chromium.org> wrote: > > On 2014/03/11 20:50:46, jww wrote: ...
6 years, 9 months ago (2014-03-12 05:09:51 UTC) #8
pfeldman
> Agreed. I think we should provide a version of the digest API that can ...
6 years, 9 months ago (2014-03-12 05:18:18 UTC) #9
eseidel
This is OK, but I might have just swapped out the guts of SHA1.h with ...
6 years, 9 months ago (2014-03-12 06:39:29 UTC) #10
eseidel
I realize now that CryptoUtil is your new wrapper. I guess that's OK, and I ...
6 years, 9 months ago (2014-03-12 06:41:04 UTC) #11
eseidel
I see now that you're replacing SHA1 with a more generic crypto helper. nit: Util ...
6 years, 9 months ago (2014-03-12 06:50:28 UTC) #12
eseidel
https://codereview.chromium.org/189373010/diff/40001/Source/platform/CryptoUtilities.h File Source/platform/CryptoUtilities.h (right): https://codereview.chromium.org/189373010/diff/40001/Source/platform/CryptoUtilities.h#newcode42 Source/platform/CryptoUtilities.h:42: typedef Vector<uint8_t, kMaxDigestSize> DigestValue; I see, you're just typdefing ...
6 years, 9 months ago (2014-03-12 06:51:22 UTC) #13
abarth-chromium
https://codereview.chromium.org/189373010/diff/40001/Source/core/frame/csp/CSPSourceList.h File Source/core/frame/csp/CSPSourceList.h (right): https://codereview.chromium.org/189373010/diff/40001/Source/core/frame/csp/CSPSourceList.h#newcode9 Source/core/frame/csp/CSPSourceList.h:9: #include "platform/CryptoUtilities.h" Yeah, I agree with Eric. Drop the ...
6 years, 9 months ago (2014-03-12 18:59:01 UTC) #14
jww
On 2014/03/12 18:59:01, abarth wrote: > https://codereview.chromium.org/189373010/diff/40001/Source/core/frame/csp/CSPSourceList.h > File Source/core/frame/csp/CSPSourceList.h (right): > > https://codereview.chromium.org/189373010/diff/40001/Source/core/frame/csp/CSPSourceList.h#newcode9 > ...
6 years, 9 months ago (2014-03-14 23:02:22 UTC) #15
jww
Sorry for the long delay on this one, but I was waiting on https://codereview.chromium.org/195983024/ and ...
6 years, 8 months ago (2014-04-01 23:29:09 UTC) #16
abarth-chromium
lgtm https://codereview.chromium.org/189373010/diff/60001/Source/core/frame/csp/CSPSourceList.cpp File Source/core/frame/csp/CSPSourceList.cpp (right): https://codereview.chromium.org/189373010/diff/60001/Source/core/frame/csp/CSPSourceList.cpp#newcode10 Source/core/frame/csp/CSPSourceList.cpp:10: #include "platform/Crypto.h" You already addes this to CSPSourceList.h. ...
6 years, 8 months ago (2014-04-01 23:46:48 UTC) #17
jww
Fixes from abarth are in. pfeldman, I'll still wait for your lgtm, though. https://codereview.chromium.org/189373010/diff/60001/Source/core/frame/csp/CSPSourceList.cpp File ...
6 years, 8 months ago (2014-04-02 01:11:50 UTC) #18
jww
On 2014/04/02 01:11:50, jww wrote: > Fixes from abarth are in. > > pfeldman, I'll ...
6 years, 8 months ago (2014-04-04 16:36:15 UTC) #19
jww
The CQ bit was checked by jww@chromium.org
6 years, 8 months ago (2014-04-04 16:36:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/189373010/80001
6 years, 8 months ago (2014-04-04 16:36:24 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 16:53:18 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-04 16:53:19 UTC) #23
jww
The CQ bit was checked by jww@chromium.org
6 years, 8 months ago (2014-04-04 19:22:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/189373010/100001
6 years, 8 months ago (2014-04-04 19:22:27 UTC) #25
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 20:18:51 UTC) #26
Message was sent while issue was closed.
Change committed as 170897

Powered by Google App Engine
This is Rietveld 408576698