OLD | NEW |
| (Empty) |
1 Tests deriveKey() using ECDH to make HMAC keys | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 Importing the private key... | |
7 | |
8 Importing the public key... | |
9 | |
10 Deriving an HMAC 136 bit key... | |
11 | |
12 PASS key.type is "secret" | |
13 PASS typeof key.extractable is 'boolean' | |
14 PASS key.extractable is true | |
15 PASS key.algorithm.name is "HMAC" | |
16 PASS key.algorithm.hash.name is "SHA-1" | |
17 PASS key.algorithm.length is 136 | |
18 PASS key.usages.join(',') is "sign" | |
19 PASS: Derived Bytes should be [0117d54d84379d0fd385be068455a77a53] and was | |
20 Deriving an HMAC 256 bit key... | |
21 | |
22 PASS key.type is "secret" | |
23 PASS typeof key.extractable is 'boolean' | |
24 PASS key.extractable is true | |
25 PASS key.algorithm.name is "HMAC" | |
26 PASS key.algorithm.hash.name is "SHA-256" | |
27 PASS key.algorithm.length is 512 | |
28 PASS key.usages.join(',') is "sign,verify" | |
29 PASS: Derived Bytes should be [0117d54d84379d0fd385be068455a77a5366ab534ff172ab0
a121f37d180dccd19607abb0c41cb9f6f12b01303ac4a69dc2d1d05180181fd496d9769b46bffec]
and was | |
30 Deriving an HMAC 256 bit key... | |
31 | |
32 PASS key.type is "secret" | |
33 PASS typeof key.extractable is 'boolean' | |
34 PASS key.extractable is false | |
35 PASS key.algorithm.name is "HMAC" | |
36 PASS key.algorithm.hash.name is "SHA-256" | |
37 PASS key.algorithm.length is 256 | |
38 PASS key.usages.join(',') is "verify" | |
39 PASS successfullyParsed is true | |
40 | |
41 TEST COMPLETE | |
42 | |
OLD | NEW |