OLD | NEW |
(Empty) | |
| 1 Test generating a HMAC key. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 |
| 7 Generating a key with default length... |
| 8 error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': paramete
r 1 ('algorithm') is not an object. |
| 9 error is: SyntaxError: HmacKeyGenParams: hash: Missing or not a dictionary |
| 10 error is: SyntaxError: HmacKeyGenParams: length: Is not a number |
| 11 error is: SyntaxError: HmacKeyGenParams: length: Is not a number |
| 12 PASS key.type is 'secret' |
| 13 PASS key.extractable is true |
| 14 PASS key.algorithm.name is 'HMAC' |
| 15 PASS key.algorithm.length is 512 |
| 16 PASS key.usages is ["sign", "verify"] |
| 17 |
| 18 Generating a key with custom length... |
| 19 PASS key.type is 'secret' |
| 20 PASS key.extractable is true |
| 21 PASS key.algorithm.name is 'HMAC' |
| 22 PASS key.algorithm.length is 40 |
| 23 PASS key.usages is ["sign"] |
| 24 PASS successfullyParsed is true |
| 25 |
| 26 TEST COMPLETE |
| 27 |
OLD | NEW |