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

Issue 267133002: [webcrypto] Allow both ArrayBuffer and ArrayBufferView as inputs to crypto.subtle methods. (Closed)

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

Description

[webcrypto] Allow both ArrayBuffer and ArrayBufferView as inputs to crypto.subtle methods. This is in line with the webcrypto spec which takes CryptoOperationData as inputs throughout, and defines it as: typedef (ArrayBuffer or ArrayBufferView) CryptoOperationData; BUG=369179, 245025 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173601

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move SubtleCrypto::Bytes --> wtf::ArrayBytes #

Patch Set 3 : don't use nullptr #

Patch Set 4 : Remove buffer check #

Total comments: 4

Patch Set 5 : Rename ArrayBytes --> ArrayPiece #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -47 lines) Patch
A LayoutTests/crypto/digest-arraybuffer.html View 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/crypto/digest-arraybuffer-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/crypto/digest-failures-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/crypto/importKey-badParameters-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/crypto/sign-verify-badParameters-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/crypto/unwrapKey-badParameters-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.h View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 1 2 3 4 9 chunks +29 lines, -25 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.idl View 1 chunk +16 lines, -0 lines 0 comments Download
A Source/wtf/ArrayPiece.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A Source/wtf/ArrayPiece.cpp View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M Source/wtf/Forward.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
eroman
6 years, 7 months ago (2014-05-06 05:27:47 UTC) #1
abarth-chromium
https://codereview.chromium.org/267133002/diff/1/Source/modules/crypto/SubtleCrypto.h File Source/modules/crypto/SubtleCrypto.h (right): https://codereview.chromium.org/267133002/diff/1/Source/modules/crypto/SubtleCrypto.h#newcode62 Source/modules/crypto/SubtleCrypto.h:62: }; Can you move this class in WTF? It ...
6 years, 7 months ago (2014-05-06 05:30:49 UTC) #2
eroman
https://codereview.chromium.org/267133002/diff/1/Source/modules/crypto/SubtleCrypto.h File Source/modules/crypto/SubtleCrypto.h (right): https://codereview.chromium.org/267133002/diff/1/Source/modules/crypto/SubtleCrypto.h#newcode62 Source/modules/crypto/SubtleCrypto.h:62: }; On 2014/05/06 05:30:49, abarth wrote: > Can you ...
6 years, 7 months ago (2014-05-06 21:27:26 UTC) #3
abarth-chromium
lgtm https://codereview.chromium.org/267133002/diff/90001/Source/wtf/ArrayBytes.h File Source/wtf/ArrayBytes.h (right): https://codereview.chromium.org/267133002/diff/90001/Source/wtf/ArrayBytes.h#newcode22 Source/wtf/ArrayBytes.h:22: class WTF_EXPORT ArrayBytes { I guess we could ...
6 years, 7 months ago (2014-05-07 06:19:09 UTC) #4
eroman
https://codereview.chromium.org/267133002/diff/90001/Source/wtf/ArrayBytes.h File Source/wtf/ArrayBytes.h (right): https://codereview.chromium.org/267133002/diff/90001/Source/wtf/ArrayBytes.h#newcode22 Source/wtf/ArrayBytes.h:22: class WTF_EXPORT ArrayBytes { On 2014/05/07 06:19:10, abarth wrote: ...
6 years, 7 months ago (2014-05-07 21:34:57 UTC) #5
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 7 months ago (2014-05-08 04:40:10 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/267133002/110001
6 years, 7 months ago (2014-05-08 04:40:41 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-05-08 04:55:26 UTC) #8
Message was sent while issue was closed.
Change committed as 173601

Powered by Google App Engine
This is Rietveld 408576698