hmac-sign-verify-expected.txt 602 Bytes
Newer Older
ap@apple.com's avatar
ap@apple.com committed
1
Test HMAC sign and verify functions.
2 3 4 5 6 7 8

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Importing a raw HMAC key from string literal...
PASS key.type is 'secret'
PASS key.extractable is true
9
PASS key.algorithm.name is 'HMAC'
10
PASS key.algorithm.length is 1
11
PASS key.algorithm.hash.name is 'SHA-1'
12 13
PASS key.usages is ['sign', 'verify']
Using the key to sign 'foo'...
ap@apple.com's avatar
ap@apple.com committed
14
PASS bytesToHexString(new Uint8Array(signature)) is 'bebbc02e46b0f81183f40c25dce23e5045d65519'
15 16 17 18 19 20
Verifying the signature...
PASS verificationResult is true
PASS successfullyParsed is true

TEST COMPLETE