blob: b2fd3bbb7d05386bbe2977bb410bb7050fd2d9af [file] [log] [blame]
Test generating a HMAC key.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Generating a key with default length...
error is: TypeError: HmacKeyGenParams: hash: Missing or not an AlgorithmIdentifier
error is: TypeError: HmacKeyGenParams: hash: Missing or not an AlgorithmIdentifier
error is: TypeError: HmacKeyGenParams: length: Is not a number
error is: TypeError: HmacKeyGenParams: length: Is not a number
PASS key.type is 'secret'
PASS key.extractable is true
PASS key.algorithm.name is 'HMAC'
PASS key.algorithm.length is 512
PASS key.usages is ["sign", "verify"]
Generating a key with custom length...
PASS key.type is 'secret'
PASS key.extractable is true
PASS key.algorithm.name is 'HMAC'
PASS key.algorithm.length is 40
PASS key.usages is ["sign"]
PASS successfullyParsed is true
TEST COMPLETE