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

Issue 822083003: Webcrypto: add layout tests for HKDF algorithm (Closed)

Created:
5 years, 12 months ago by nharper
Modified:
5 years, 11 months ago
Reviewers:
eroman
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Webcrypto: add layout tests for HKDF algorithm BUG=399095 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188354

Patch Set 1 #

Total comments: 24

Patch Set 2 : #

Patch Set 3 : use correct diffbase #

Total comments: 47

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Patch Set 7 : rename hkdf-deriveBits-test-vectors -> hkdf-deriveBits-rfc5869-test-vectors #

Patch Set 8 : remove duplicate test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1005 lines, -30 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 2 chunks +11 lines, -2 lines 0 comments Download
A + LayoutTests/crypto/subtle/clone-hkdfKey.html View 1 2 3 4 chunks +15 lines, -27 lines 0 comments Download
A LayoutTests/crypto/subtle/clone-hkdfKey-expected.txt View 1 1 chunk +279 lines, -0 lines 0 comments Download
M LayoutTests/crypto/subtle/clone-hmacKey.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/crypto/subtle/derive-hkdf-keys.html View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/derive-hkdf-keys-expected.txt View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveBits.html View 1 2 3 4 5 1 chunk +53 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveBits-expected.txt View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveBits-failures.html View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveBits-rfc5869-test-vectors.html View 1 2 3 4 5 6 1 chunk +107 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveBits-rfc5869-test-vectors-expected.txt View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveKey.html View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-deriveKey-expected.txt View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-exportKey.html View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-exportKey-expected.txt View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-importKey-failures.html View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-importKey-failures-expected.txt View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-unwrapKey.html View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A LayoutTests/crypto/subtle/hkdf-unwrapKey-expected.txt View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (2 generated)
nharper
This is dependent on https://codereview.chromium.org/803173010/ which is dependent on https://codereview.chromium.org/789733009/
5 years, 12 months ago (2014-12-23 22:50:38 UTC) #2
eroman
(1) Please add a test for importing an empty key, and using it to derive. ...
5 years, 12 months ago (2014-12-23 23:29:39 UTC) #3
nharper
https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveBits-failures.html File LayoutTests/crypto/subtle/hkdf-deriveBits-failures.html (right): https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveBits-failures.html#newcode20 LayoutTests/crypto/subtle/hkdf-deriveBits-failures.html:20: // set up the test by creating an HKDF ...
5 years, 11 months ago (2015-01-06 23:52:11 UTC) #4
eroman
Please also add tests for bit lengths that are not multiples of 8. https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html File ...
5 years, 11 months ago (2015-01-07 01:18:44 UTC) #5
eroman
https://codereview.chromium.org/822083003/diff/40001/LayoutTests/crypto/subtle/hkdf-failures-expected.txt File LayoutTests/crypto/subtle/hkdf-failures-expected.txt (right): https://codereview.chromium.org/822083003/diff/40001/LayoutTests/crypto/subtle/hkdf-failures-expected.txt#newcode8 LayoutTests/crypto/subtle/hkdf-failures-expected.txt:8: error is: NotSupportedError: Unsupported export key format for algorithm ...
5 years, 11 months ago (2015-01-09 03:16:02 UTC) #6
nharper
https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html File LayoutTests/crypto/subtle/hkdf-deriveKey.html (right): https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html#newcode25 LayoutTests/crypto/subtle/hkdf-deriveKey.html:25: return crypto.subtle.deriveKey({name: "HKDF", hash: "SHA-256", salt: new Uint8Array(), info: ...
5 years, 11 months ago (2015-01-09 17:54:35 UTC) #7
eroman
https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html File LayoutTests/crypto/subtle/hkdf-deriveKey.html (right): https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html#newcode25 LayoutTests/crypto/subtle/hkdf-deriveKey.html:25: return crypto.subtle.deriveKey({name: "HKDF", hash: "SHA-256", salt: new Uint8Array(), info: ...
5 years, 11 months ago (2015-01-09 19:27:47 UTC) #8
nharper
https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html File LayoutTests/crypto/subtle/hkdf-deriveKey.html (right): https://codereview.chromium.org/822083003/diff/1/LayoutTests/crypto/subtle/hkdf-deriveKey.html#newcode25 LayoutTests/crypto/subtle/hkdf-deriveKey.html:25: return crypto.subtle.deriveKey({name: "HKDF", hash: "SHA-256", salt: new Uint8Array(), info: ...
5 years, 11 months ago (2015-01-09 22:41:47 UTC) #9
eroman
https://codereview.chromium.org/822083003/diff/40001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/822083003/diff/40001/LayoutTests/TestExpectations#newcode627 LayoutTests/TestExpectations:627: crbug.com/338887 [ Linux ] crypto/subtle/hkdf-importKey.html [ Failure Pass ] ...
5 years, 11 months ago (2015-01-12 22:35:23 UTC) #10
nharper
https://codereview.chromium.org/822083003/diff/60001/LayoutTests/crypto/subtle/derive-hkdf-keys.html File LayoutTests/crypto/subtle/derive-hkdf-keys.html (right): https://codereview.chromium.org/822083003/diff/60001/LayoutTests/crypto/subtle/derive-hkdf-keys.html#newcode49 LayoutTests/crypto/subtle/derive-hkdf-keys.html:49: return crypto.subtle.deriveKey(hkdfAlgorithm, hkdfKey, "HKDF", true, ['deriveBits']); On 2015/01/12 22:35:23, ...
5 years, 11 months ago (2015-01-13 00:11:16 UTC) #11
eroman
https://codereview.chromium.org/822083003/diff/60001/LayoutTests/crypto/subtle/derive-hkdf-keys.html File LayoutTests/crypto/subtle/derive-hkdf-keys.html (right): https://codereview.chromium.org/822083003/diff/60001/LayoutTests/crypto/subtle/derive-hkdf-keys.html#newcode49 LayoutTests/crypto/subtle/derive-hkdf-keys.html:49: return crypto.subtle.deriveKey(hkdfAlgorithm, hkdfKey, "HKDF", true, ['deriveBits']); On 2015/01/13 00:11:15, ...
5 years, 11 months ago (2015-01-13 00:45:35 UTC) #12
nharper
https://codereview.chromium.org/822083003/diff/80001/LayoutTests/crypto/subtle/derive-hkdf-keys.html File LayoutTests/crypto/subtle/derive-hkdf-keys.html (right): https://codereview.chromium.org/822083003/diff/80001/LayoutTests/crypto/subtle/derive-hkdf-keys.html#newcode42 LayoutTests/crypto/subtle/derive-hkdf-keys.html:42: name: "HKDF", On 2015/01/13 00:45:34, eroman wrote: > indent ...
5 years, 11 months ago (2015-01-13 01:43:26 UTC) #13
eroman
Any update on the other comments? (renaming the file) https://codereview.chromium.org/822083003/diff/80001/LayoutTests/crypto/subtle/hkdf-deriveBits.html File LayoutTests/crypto/subtle/hkdf-deriveBits.html (right): https://codereview.chromium.org/822083003/diff/80001/LayoutTests/crypto/subtle/hkdf-deriveBits.html#newcode45 LayoutTests/crypto/subtle/hkdf-deriveBits.html:45: ...
5 years, 11 months ago (2015-01-14 02:45:11 UTC) #14
nharper
I believe the other comments are addressed in patch sets 7 and 8. https://codereview.chromium.org/822083003/diff/80001/LayoutTests/crypto/subtle/hkdf-deriveBits.html File ...
5 years, 11 months ago (2015-01-14 02:53:42 UTC) #15
eroman
lgtm
5 years, 11 months ago (2015-01-14 02:54:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822083003/140001
5 years, 11 months ago (2015-01-14 02:57:02 UTC) #18
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 04:32:01 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188354

Powered by Google App Engine
This is Rietveld 408576698