OLD | NEW |
1 Tests sign() and verify() for HMAC | 1 Tests sign() and verify() 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 PASS tmpKey.type is "secret" | 6 PASS tmpKey.type is "secret" |
7 PASS typeof tmpKey.extractable is 'boolean' | 7 PASS typeof tmpKey.extractable is 'boolean' |
8 PASS tmpKey.extractable is false | 8 PASS tmpKey.extractable is false |
9 PASS tmpKey.algorithm.name is "HMAC" | 9 PASS tmpKey.algorithm.name is "HMAC" |
10 PASS tmpKey.algorithm.hash.name is "SHA-1" | 10 PASS tmpKey.algorithm.hash.name is "SHA-1" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 PASS tmpKey.algorithm.hash.name is "SHA-256" | 240 PASS tmpKey.algorithm.hash.name is "SHA-256" |
241 PASS tmpKey.algorithm.length is 592 | 241 PASS tmpKey.algorithm.length is 592 |
242 PASS tmpKey.usages.join(',') is "sign,verify" | 242 PASS tmpKey.usages.join(',') is "sign,verify" |
243 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425
2801b] and was | 243 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425
2801b] and was |
244 PASS verifyResult is true | 244 PASS verifyResult is true |
245 PASS verifyResult is false | 245 PASS verifyResult is false |
246 PASS successfullyParsed is true | 246 PASS successfullyParsed is true |
247 | 247 |
248 TEST COMPLETE | 248 TEST COMPLETE |
249 | 249 |
OLD | NEW |