OLD | NEW |
1 Test importing a JWK key for HMAC. | 1 Test importing a JWK key for HMAC. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Importing a key... | 6 Importing a key... |
7 | 7 |
8 PASS key.type is 'secret' | 8 PASS key.type is 'secret' |
9 PASS key.extractable is false | 9 PASS key.extractable is false |
10 PASS key.algorithm.name is 'HMAC' | 10 PASS key.algorithm.name is 'HMAC' |
11 PASS key.algorithm.length is 256 | 11 PASS key.algorithm.length is 256 |
12 PASS key.usages is ["sign", "verify"] | 12 PASS key.usages is ["sign", "verify"] |
13 | 13 |
14 Using the key to sign message 'foo'... | 14 Using the key to sign message 'foo'... |
15 PASS bytesToHexString(new Uint8Array(signature)) is 'e03736fe098892b2a2da7781243
1f7c014d32e2fd69f3bcff883ac923a8fa2da' | 15 PASS bytesToHexString(new Uint8Array(signature)) is 'e03736fe098892b2a2da7781243
1f7c014d32e2fd69f3bcff883ac923a8fa2da' |
16 | 16 |
17 Verifying the signature... | 17 Verifying the signature... |
18 PASS verificationResult is true | 18 PASS verificationResult is true |
19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
20 | 20 |
21 TEST COMPLETE | 21 TEST COMPLETE |
22 | 22 |
OLD | NEW |