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

Issue 312393004: Expose WebCrypto's lookupAlgorithmInfo. (Closed)

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

Description

Expose WebCrypto's lookupAlgorithmInfo. Will allow reuse of this function in the implementation of the enterprise.platfromKeys Chrome extension API. BUG=364435 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176190

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fixed constant definitions. #

Total comments: 3

Patch Set 3 : Moving lookupAlgorithmInfo as well. #

Total comments: 2

Patch Set 4 : Addressed comment (removed redundant idToName). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -210 lines) Patch
M Source/modules/crypto/KeyAlgorithm.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M Source/modules/crypto/NormalizeAlgorithm.h View 2 chunks +0 lines, -6 lines 0 comments Download
M Source/modules/crypto/NormalizeAlgorithm.cpp View 1 2 3 4 chunks +3 lines, -203 lines 0 comments Download
M Source/platform/exported/WebCryptoAlgorithm.cpp View 1 2 3 2 chunks +189 lines, -0 lines 0 comments Download
M public/platform/WebCryptoAlgorithm.h View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
pneubeck (no reviews)
ptal @Adam, I need your lgtm for Source/platform/exported/WebCryptoAlgorithm.cpp public/platform/WebCryptoAlgorithm.h
6 years, 6 months ago (2014-06-06 12:23:42 UTC) #1
abarth-chromium
What is enterprise.platfromKeys?
6 years, 6 months ago (2014-06-06 17:07:51 UTC) #2
abarth-chromium
I'd like to understand better why we're making this change... https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp File Source/platform/exported/WebCryptoAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode49 ...
6 years, 6 months ago (2014-06-06 17:10:09 UTC) #3
pneubeck (no reviews)
https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp File Source/platform/exported/WebCryptoAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode106 Source/platform/exported/WebCryptoAlgorithm.cpp:106: } On 2014/06/06 17:10:08, abarth wrote: > Can we ...
6 years, 6 months ago (2014-06-06 18:08:32 UTC) #4
pneubeck (no reviews)
On 2014/06/06 17:10:09, abarth wrote: > I'd like to understand better why we're making this ...
6 years, 6 months ago (2014-06-06 18:15:26 UTC) #5
abarth-chromium
On 2014/06/06 18:15:26, pneubeck wrote: > On 2014/06/06 17:10:09, abarth wrote: > > I'd like ...
6 years, 6 months ago (2014-06-06 18:20:53 UTC) #6
pneubeck (no reviews)
On 2014/06/06 18:20:53, abarth wrote: > On 2014/06/06 18:15:26, pneubeck wrote: > > On 2014/06/06 ...
6 years, 6 months ago (2014-06-06 18:24:14 UTC) #7
pneubeck (no reviews)
@Eric, friendly ping @Adam, can you nonetheless take a look? Not sure whether you want ...
6 years, 6 months ago (2014-06-10 12:24:35 UTC) #8
pneubeck (no reviews)
https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp File Source/platform/exported/WebCryptoAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode49 Source/platform/exported/WebCryptoAlgorithm.cpp:49: const char* kAlgorithmNameAesKw = "AES-KW"; On 2014/06/06 17:10:09, abarth ...
6 years, 6 months ago (2014-06-10 12:33:02 UTC) #9
eroman
The refactor LGTM. However it is unfortunate that the platform/exported code can't just call into ...
6 years, 6 months ago (2014-06-12 05:54:45 UTC) #10
pneubeck (no reviews)
On 2014/06/12 05:54:45, eroman wrote: > The refactor LGTM. > > However it is unfortunate ...
6 years, 6 months ago (2014-06-12 07:58:15 UTC) #11
abarth-chromium
On 2014/06/06 at 18:08:32, pneubeck wrote: > https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp > File Source/platform/exported/WebCryptoAlgorithm.cpp (right): > > https://codereview.chromium.org/312393004/diff/20001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode106 ...
6 years, 6 months ago (2014-06-12 17:25:16 UTC) #12
abarth-chromium
https://codereview.chromium.org/312393004/diff/40001/Source/platform/exported/WebCryptoAlgorithm.cpp File Source/platform/exported/WebCryptoAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/40001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode106 Source/platform/exported/WebCryptoAlgorithm.cpp:106: } Can this be a static table instead of ...
6 years, 6 months ago (2014-06-12 17:25:27 UTC) #13
pneubeck (no reviews)
https://codereview.chromium.org/312393004/diff/40001/Source/platform/exported/WebCryptoAlgorithm.cpp File Source/platform/exported/WebCryptoAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/40001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode106 Source/platform/exported/WebCryptoAlgorithm.cpp:106: } On 2014/06/12 17:25:27, abarth wrote: > Can this ...
6 years, 6 months ago (2014-06-12 18:06:46 UTC) #14
eroman
https://codereview.chromium.org/312393004/diff/40001/Source/platform/exported/WebCryptoAlgorithm.cpp File Source/platform/exported/WebCryptoAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/40001/Source/platform/exported/WebCryptoAlgorithm.cpp#newcode106 Source/platform/exported/WebCryptoAlgorithm.cpp:106: } On 2014/06/12 18:06:46, pneubeck wrote: > On 2014/06/12 ...
6 years, 6 months ago (2014-06-12 19:16:58 UTC) #15
pneubeck (no reviews)
ptal. I followed Eric's last suggestion, which should address Adams request. If you could manage ...
6 years, 6 months ago (2014-06-13 18:31:18 UTC) #16
abarth-chromium
lgtm
6 years, 6 months ago (2014-06-13 21:53:02 UTC) #17
eroman
lgtm https://codereview.chromium.org/312393004/diff/80001/Source/modules/crypto/NormalizeAlgorithm.cpp File Source/modules/crypto/NormalizeAlgorithm.cpp (right): https://codereview.chromium.org/312393004/diff/80001/Source/modules/crypto/NormalizeAlgorithm.cpp#newcode707 Source/modules/crypto/NormalizeAlgorithm.cpp:707: context.add(blink::WebCryptoAlgorithm::idToName(algorithmId)); This could be algorithmInfo->name instead
6 years, 6 months ago (2014-06-13 22:57:55 UTC) #18
pneubeck (no reviews)
I removed the idToName function from the public interface, to keep the interface redundancy free. ...
6 years, 6 months ago (2014-06-16 07:42:12 UTC) #19
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-16 07:42:21 UTC) #20
pneubeck (no reviews)
The CQ bit was unchecked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-16 07:42:25 UTC) #21
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-16 07:43:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/312393004/120001
6 years, 6 months ago (2014-06-16 07:44:05 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 08:51:44 UTC) #24
Message was sent while issue was closed.
Change committed as 176190

Powered by Google App Engine
This is Rietveld 408576698