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

Issue 195983024: Add a WebCrypto API for getting digests by chunk. (Closed)

Created:
6 years, 9 months ago by jww
Modified:
6 years, 9 months ago
Reviewers:
eroman, abarth-chromium
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add a WebCrypto API for getting digests by chunk. Currently the WebCrypto API only has support for one-shot digests. This CL provides the necessary API scaffolding for methods to generate digests one chunk at a time. BUG=349514 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169991

Patch Set 1 #

Patch Set 2 : Updated digest-by-chunk API to use a Digestor object #

Total comments: 11

Patch Set 3 : Simplify Digestor APi #

Patch Set 4 : Simplified WebCryptoDigestor to more of an interface #

Total comments: 8

Patch Set 5 : Fixed nits #

Total comments: 5

Patch Set 6 : Removed unnecessary include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -5 lines) Patch
M public/platform/WebCrypto.h View 1 2 3 4 5 2 chunks +31 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
jww
As per several of the comments in https://codereview.chromium.org/189373010/, it seems like it would be useful ...
6 years, 9 months ago (2014-03-14 22:53:51 UTC) #1
jww
6 years, 9 months ago (2014-03-14 22:54:10 UTC) #2
eroman
Thanks for chipping away at this! I'll bet you didn't expect it would be this ...
6 years, 9 months ago (2014-03-14 23:30:33 UTC) #3
jww
On 2014/03/14 23:30:33, eroman wrote: > Thanks for chipping away at this! I'll bet you ...
6 years, 9 months ago (2014-03-14 23:36:35 UTC) #4
jww
On 2014/03/14 23:36:35, jww wrote: > On 2014/03/14 23:30:33, eroman wrote: > > Thanks for ...
6 years, 9 months ago (2014-03-18 18:25:46 UTC) #5
jww
eroman@, this is the new version of the API. As I mentioned, it's still not ...
6 years, 9 months ago (2014-03-18 20:29:25 UTC) #6
eroman
https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h#newcode103 public/platform/WebCrypto.h:103: WebCryptoDigestor(blink::WebCryptoAlgorithmId algorithmId) { } Remove this constructor https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h#newcode106 public/platform/WebCrypto.h:106: ...
6 years, 9 months ago (2014-03-19 19:06:21 UTC) #7
jww
https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h#newcode103 public/platform/WebCrypto.h:103: WebCryptoDigestor(blink::WebCryptoAlgorithmId algorithmId) { } On 2014/03/19 19:06:21, eroman wrote: ...
6 years, 9 months ago (2014-03-20 23:02:49 UTC) #8
eroman
https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h#newcode103 public/platform/WebCrypto.h:103: WebCryptoDigestor(blink::WebCryptoAlgorithmId algorithmId) { } On 2014/03/20 23:02:50, jww wrote: ...
6 years, 9 months ago (2014-03-20 23:14:02 UTC) #9
jww
On 2014/03/20 23:14:02, eroman wrote: > https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h > File public/platform/WebCrypto.h (right): > > https://codereview.chromium.org/195983024/diff/20001/public/platform/WebCrypto.h#newcode103 > ...
6 years, 9 months ago (2014-03-21 00:16:14 UTC) #10
eroman
LGTM after these comments. Apologies for delay, was out in vacation Friday (still doesn't explain ...
6 years, 9 months ago (2014-03-25 17:37:02 UTC) #11
jww
No problem, thanks for the review! abarth, would you mind taking the OWNER look at ...
6 years, 9 months ago (2014-03-25 20:18:18 UTC) #12
abarth-chromium
lgtm https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h#newcode114 public/platform/WebCrypto.h:114: virtual bool finish(unsigned char*& resultData, unsigned& resultDataSize) { ...
6 years, 9 months ago (2014-03-25 21:06:36 UTC) #13
jww
https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h#newcode114 public/platform/WebCrypto.h:114: virtual bool finish(unsigned char*& resultData, unsigned& resultDataSize) { return ...
6 years, 9 months ago (2014-03-25 21:12:06 UTC) #14
abarth-chromium
https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h#newcode114 public/platform/WebCrypto.h:114: virtual bool finish(unsigned char*& resultData, unsigned& resultDataSize) { return ...
6 years, 9 months ago (2014-03-25 21:16:31 UTC) #15
jww
The CQ bit was checked by jww@chromium.org
6 years, 9 months ago (2014-03-25 21:17:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/195983024/100001
6 years, 9 months ago (2014-03-25 21:17:35 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 22:18:45 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-25 22:18:46 UTC) #19
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 9 months ago (2014-03-25 23:27:24 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/195983024/100001
6 years, 9 months ago (2014-03-25 23:27:27 UTC) #21
eroman
https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h#newcode37 public/platform/WebCrypto.h:37: #include "WebPrivateOwnPtr.h" This is unused, delete it.
6 years, 9 months ago (2014-03-25 23:28:09 UTC) #22
jww
The CQ bit was unchecked by jww@chromium.org
6 years, 9 months ago (2014-03-25 23:37:31 UTC) #23
jww
https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h File public/platform/WebCrypto.h (right): https://codereview.chromium.org/195983024/diff/100001/public/platform/WebCrypto.h#newcode37 public/platform/WebCrypto.h:37: #include "WebPrivateOwnPtr.h" On 2014/03/25 23:28:09, eroman wrote: > This ...
6 years, 9 months ago (2014-03-25 23:39:45 UTC) #24
jww
The CQ bit was checked by jww@chromium.org
6 years, 9 months ago (2014-03-25 23:39:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/195983024/250001
6 years, 9 months ago (2014-03-25 23:40:01 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 00:05:15 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-26 00:05:16 UTC) #28
jww
The CQ bit was checked by jww@chromium.org
6 years, 9 months ago (2014-03-26 00:11:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/195983024/250001
6 years, 9 months ago (2014-03-26 00:11:10 UTC) #30
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 00:50:01 UTC) #31
Message was sent while issue was closed.
Change committed as 169991

Powered by Google App Engine
This is Rietveld 408576698