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

Issue 295423004: Expose WebCrypto's algorithm normalization. (Closed)

Created:
6 years, 7 months ago by pneubeck (no reviews)
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Expose WebCrypto's algorithm normalization. This exposes the WebCore::parseAlgorithm function through blink::WebScriptBindings. This will allow reusing the normalization in the implementation of the Chrome extension API enterprise.platformKeys. To keep the exposure of types minimal, the dependency of parseAlgorithm on CryptoResult was removed. On the way, renames parseAlgorithm to normalizeAlgorithm in order to match the WebCrypto spec and the filename. BUG=364435 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175657

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased, minor cleanups. #

Total comments: 9

Patch Set 3 : Addressed comments. #

Total comments: 4

Patch Set 4 : Addressed comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -179 lines) Patch
M Source/modules/crypto/CryptoResultImpl.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/crypto/CryptoResultImpl.cpp View 1 3 chunks +2 lines, -6 lines 0 comments Download
M Source/modules/crypto/Key.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/crypto/Key.cpp View 1 2 2 chunks +13 lines, -13 lines 0 comments Download
M Source/modules/crypto/NormalizeAlgorithm.h View 1 2 3 chunks +8 lines, -18 lines 0 comments Download
M Source/modules/crypto/NormalizeAlgorithm.cpp View 1 2 23 chunks +95 lines, -93 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 1 2 8 chunks +29 lines, -20 lines 0 comments Download
A + Source/web/WebCryptoNormalize.cpp View 1 2 1 chunk +19 lines, -14 lines 0 comments Download
M Source/web/web.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/WebCryptoAlgorithm.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A + public/web/WebCryptoNormalize.h View 1 2 3 1 chunk +18 lines, -14 lines 1 comment Download

Messages

Total messages: 23 (0 generated)
pneubeck (no reviews)
Hi Eric, could you take a quick look whether this approximately makes sense to you? ...
6 years, 7 months ago (2014-05-26 16:07:59 UTC) #1
pneubeck (no reviews)
On 2014/05/26 16:07:59, pneubeck wrote: > Hi Eric, > could you take a quick look ...
6 years, 7 months ago (2014-05-26 16:12:39 UTC) #2
pneubeck (no reviews)
On 2014/05/26 16:12:39, pneubeck wrote: > On 2014/05/26 16:07:59, pneubeck wrote: > > Hi Eric, ...
6 years, 7 months ago (2014-05-26 16:50:48 UTC) #3
pneubeck (no reviews)
On 2014/05/26 16:50:48, pneubeck wrote: > On 2014/05/26 16:12:39, pneubeck wrote: > > On 2014/05/26 ...
6 years, 7 months ago (2014-05-27 16:49:35 UTC) #4
eroman
general approach looks fine. what algorithms/parmeters are going to be used? will it require putting ...
6 years, 6 months ago (2014-05-28 20:54:50 UTC) #5
pneubeck (no reviews)
On 2014/05/28 20:54:50, eroman wrote: > general approach looks fine. > > what algorithms/parmeters are ...
6 years, 6 months ago (2014-05-29 12:43:34 UTC) #6
pneubeck (no reviews)
https://codereview.chromium.org/295423004/diff/1/Source/modules/crypto/CryptoResultImpl.h File Source/modules/crypto/CryptoResultImpl.h (right): https://codereview.chromium.org/295423004/diff/1/Source/modules/crypto/CryptoResultImpl.h#newcode43 Source/modules/crypto/CryptoResultImpl.h:43: ExceptionCode toExceptionCode(blink::WebCryptoErrorType); should likely be renamed to webCryptoErrorToExceptionCode https://codereview.chromium.org/295423004/diff/1/Source/web/WebScriptBindings.cpp ...
6 years, 6 months ago (2014-05-29 12:52:56 UTC) #7
pneubeck (no reviews)
+Adam, please review the other parts outside Source/modules/crypto Thanks!
6 years, 6 months ago (2014-05-29 12:56:26 UTC) #8
pneubeck (no reviews)
@Jochen, do you have a chance to review the other changes outside Source/modules/crypto ?
6 years, 6 months ago (2014-06-02 08:30:36 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/295423004/diff/20001/public/platform/WebCryptoAlgorithmOperation.h File public/platform/WebCryptoAlgorithmOperation.h (right): https://codereview.chromium.org/295423004/diff/20001/public/platform/WebCryptoAlgorithmOperation.h#newcode37 public/platform/WebCryptoAlgorithmOperation.h:37: Encrypt, public enums should start with Web, I'd put ...
6 years, 6 months ago (2014-06-02 09:01:45 UTC) #10
pneubeck (no reviews)
https://codereview.chromium.org/295423004/diff/20001/public/web/WebScriptBindings.h File public/web/WebScriptBindings.h (right): https://codereview.chromium.org/295423004/diff/20001/public/web/WebScriptBindings.h#newcode67 public/web/WebScriptBindings.h:67: BLINK_EXPORT static WebCryptoAlgorithm normalizeCryptoAlgorithm(v8::Handle<v8::Object>, AlgorithmOperation, int*, WebString*, v8::Isolate*); On ...
6 years, 6 months ago (2014-06-02 10:12:16 UTC) #11
jochen (gone - plz use gerrit)
On 2014/06/02 10:12:16, pneubeck wrote: > https://codereview.chromium.org/295423004/diff/20001/public/web/WebScriptBindings.h > File public/web/WebScriptBindings.h (right): > > https://codereview.chromium.org/295423004/diff/20001/public/web/WebScriptBindings.h#newcode67 > ...
6 years, 6 months ago (2014-06-02 10:15:25 UTC) #12
pneubeck (no reviews)
On 2014/06/02 10:15:25, jochen wrote: > On 2014/06/02 10:12:16, pneubeck wrote: > > > https://codereview.chromium.org/295423004/diff/20001/public/web/WebScriptBindings.h ...
6 years, 6 months ago (2014-06-02 12:33:12 UTC) #13
pneubeck (no reviews)
https://codereview.chromium.org/295423004/diff/20001/public/platform/WebCryptoAlgorithmOperation.h File public/platform/WebCryptoAlgorithmOperation.h (right): https://codereview.chromium.org/295423004/diff/20001/public/platform/WebCryptoAlgorithmOperation.h#newcode37 public/platform/WebCryptoAlgorithmOperation.h:37: Encrypt, On 2014/06/02 09:01:45, jochen wrote: > public enums ...
6 years, 6 months ago (2014-06-02 13:54:25 UTC) #14
jochen (gone - plz use gerrit)
Adam/Eric I find it kinda odd to have half of the WebCrypto stuff in platform ...
6 years, 6 months ago (2014-06-04 14:41:03 UTC) #15
eroman
LGTM. Regarding web vs platform, I am not familiar enough to comment on where that ...
6 years, 6 months ago (2014-06-05 23:12:06 UTC) #16
jochen (gone - plz use gerrit)
ok lgtm with nit addressed https://codereview.chromium.org/295423004/diff/70001/public/web/WebCryptoNormalize.h File public/web/WebCryptoNormalize.h (right): https://codereview.chromium.org/295423004/diff/70001/public/web/WebCryptoNormalize.h#newcode36 public/web/WebCryptoNormalize.h:36: #include "public/platform/WebCryptoAlgorithm.h" ../platform https://codereview.chromium.org/295423004/diff/70001/public/web/WebCryptoNormalize.h#newcode56 ...
6 years, 6 months ago (2014-06-06 06:58:23 UTC) #17
pneubeck (no reviews)
https://codereview.chromium.org/295423004/diff/70001/public/web/WebCryptoNormalize.h File public/web/WebCryptoNormalize.h (right): https://codereview.chromium.org/295423004/diff/70001/public/web/WebCryptoNormalize.h#newcode36 public/web/WebCryptoNormalize.h:36: #include "public/platform/WebCryptoAlgorithm.h" On 2014/06/06 06:58:22, jochen traveling until Jun ...
6 years, 6 months ago (2014-06-06 09:17:09 UTC) #18
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-06 09:17:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/295423004/90001
6 years, 6 months ago (2014-06-06 09:17:47 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-06 10:22:29 UTC) #21
commit-bot: I haz the power
Change committed as 175657
6 years, 6 months ago (2014-06-06 11:10:04 UTC) #22
abarth-chromium
6 years, 6 months ago (2014-06-06 17:12:48 UTC) #23
Message was sent while issue was closed.
> This exposes the WebCore::parseAlgorithm function through
blink::WebScriptBindings

^^^ This part of the description doesn't match the final version of the CL that
landed.

https://codereview.chromium.org/295423004/diff/90001/public/web/WebCryptoNorm...
File public/web/WebCryptoNormalize.h (right):

https://codereview.chromium.org/295423004/diff/90001/public/web/WebCryptoNorm...
public/web/WebCryptoNormalize.h:48: // Converts a javascript Dictionary to a
WebCryptoAlgorithm object.
javascript -> JavaScript

Powered by Google App Engine
This is Rietveld 408576698