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

Side by Side Diff: LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt

Issue 822083003: Webcrypto: add layout tests for HKDF algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Test bad inputs to HKDF deriveBits()
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 deriveBits() with an unsupported hash...
8 error is: NotSupportedError: HkdfParams: hash: HMAC: Unsupported operation: dige st
9
10 deriveBits() with a key that doesn't match the algorithm...
11 error is: InvalidAccessError: key.algorithm does not match that of operation
12
13 deriveBits() with requested length too long...
14 error is: OperationError: The length provided for HKDF is too large.
15 PASS derivedKey.type is "secret"
16 PASS typeof derivedKey.extractable is 'boolean'
17 PASS derivedKey.extractable is true
18 PASS derivedKey.algorithm.name is "AES-GCM"
19 PASS derivedKey.usages.join(',') is "encrypt"
20 PASS successfullyParsed is true
21
22 TEST COMPLETE
23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698