OLD | NEW |
---|---|
(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 importKey() with bad usages... | |
eroman
2014/12/23 23:29:39
rather than say "bad usages" say which uses were u
nharper
2015/01/06 23:51:59
Done.
| |
8 error is: SyntaxError: Cannot create a key using the specified key usages. | |
9 | |
10 importKey() with null key... | |
11 error is: DataError: Key data must be a buffer for non-JWK formats | |
12 | |
13 importKey() with jwk type... | |
14 error is: DataError: Key data must be an object for JWK import | |
15 | |
16 importKey() with spki type... | |
17 error is: NotSupportedError: Unsupported import key format for algorithm | |
18 | |
19 importKey() with empty usages... | |
20 error is: SyntaxError: Usages cannot be empty when creating a key. | |
21 | |
22 importKey() correctly | |
23 PASS successfullyParsed is true | |
24 | |
25 TEST COMPLETE | |
26 | |
OLD | NEW |