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