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

Issue 336173002: [webcrypto] Require importKey() for JWK to provide data as a Javascript object rather than a JSON a… (Closed)

Created:
6 years, 6 months ago by eroman
Modified:
6 years, 6 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

[webcrypto] Require importKey() for JWK to provide data as a Javascript object rather than a JSON arraybuffer. BUG=373917, 245025 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176238

Patch Set 1 #

Patch Set 2 : Update additional tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -74 lines) Patch
M LayoutTests/crypto/aes-cbc-import-jwk.html View 1 chunk +1 line, -3 lines 0 comments Download
M LayoutTests/crypto/aes-cbc-wrap-rsa.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/aes-cbc-wrap-rsa-non-extractable.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/aes-export-key.html View 3 chunks +2 lines, -4 lines 0 comments Download
M LayoutTests/crypto/hmac-export-key.html View 2 chunks +2 lines, -4 lines 0 comments Download
M LayoutTests/crypto/hmac-import-jwk.html View 1 chunk +1 line, -3 lines 0 comments Download
M LayoutTests/crypto/import-jwk.html View 2 chunks +22 lines, -26 lines 0 comments Download
M LayoutTests/crypto/import-jwk-expected.txt View 2 chunks +7 lines, -9 lines 0 comments Download
M LayoutTests/crypto/importKey-badParameters-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/crypto/jwk-import-use-values.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/crypto/rsa-export-key.html View 1 chunk +1 line, -3 lines 0 comments Download
M LayoutTests/crypto/rsa-export-private-key.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/crypto/rsa-indexeddb.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/crypto/rsa-oaep-key-manipulation.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/crypto/rsa-oaep-plaintext-length.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/crypto/rsa-oaep-wrap-unwrap-aes.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/crypto/rsassa-pkcs1-v1_5-import-jwk-small-key.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/crypto/rsassa-pkcs1-v1_5-sign-verify.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 5 chunks +91 lines, -1 line 0 comments Download
M Source/modules/crypto/SubtleCrypto.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
eroman
6 years, 6 months ago (2014-06-16 05:04:13 UTC) #1
abarth-chromium
That's kind of bizarre, but ok. LGTM
6 years, 6 months ago (2014-06-16 06:07:46 UTC) #2
eroman
Do you find the implementation bizarre, or the API change? (I am trying to get ...
6 years, 6 months ago (2014-06-16 15:59:53 UTC) #3
abarth-chromium
On 2014/06/16 at 15:59:53, eroman wrote: > Do you find the implementation bizarre, or the ...
6 years, 6 months ago (2014-06-16 16:49:37 UTC) #4
eroman
Thanks for the feedback! I am eager to improve the design. Some of the other ...
6 years, 6 months ago (2014-06-16 17:19:35 UTC) #5
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 6 months ago (2014-06-16 18:03:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/336173002/20001
6 years, 6 months ago (2014-06-16 18:04:05 UTC) #7
commit-bot: I haz the power
Change committed as 176238
6 years, 6 months ago (2014-06-16 20:26:41 UTC) #8
abarth-chromium
6 years, 6 months ago (2014-06-16 22:44:14 UTC) #9
Message was sent while issue was closed.
On 2014/06/16 at 17:19:35, eroman wrote:
> Unfortunately both of these strategies have the problem that unwrapKey() using
format='JWK' still has to operate on a raw JSON buffer (it is passed an
encrypted JSON buffer).

Ah, that makes sense.  I didn't realize JSON was baked in that deep.

Powered by Google App Engine
This is Rietveld 408576698