| Index: LayoutTests/crypto/hmac-export-key-expected.txt
|
| diff --git a/LayoutTests/crypto/hmac-export-key-expected.txt b/LayoutTests/crypto/hmac-export-key-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..25340d22f3a96f21df3451dd6bd4fb16442fa724
|
| --- /dev/null
|
| +++ b/LayoutTests/crypto/hmac-export-key-expected.txt
|
| @@ -0,0 +1,33 @@
|
| +Test exporting an AES key.
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +Importing a JWK key...
|
| +error is: SyntaxError: Invalid keyFormat argument
|
| +error is: SyntaxError: Invalid keyFormat argument
|
| +error is: SyntaxError: Invalid keyFormat argument
|
| +error is: SyntaxError: Invalid keyFormat argument
|
| +error is: SyntaxError: Invalid keyFormat argument
|
| +Exporting the key as raw data...
|
| +PASS bytesToHexString(new Uint8Array(exportedData)) is '6a18e49feff7f3b7e09ec89b7f6deab2f6a18e49feff7f3b7e09ec89b7f6deab'
|
| +Exporting the key as JWK...
|
| +PASS exportedJWK.kty is 'oct'
|
| +PASS exportedJWK.k is 'ahjkn-_387fgnsibf23qsvahjkn-_387fgnsibf23qs'
|
| +PASS exportedJWK.alg is 'HS256'
|
| +PASS exportedJWK.ext is true
|
| +PASS exportedJWK.use is undefined
|
| +PASS exportedJWK.key_ops is ['sign', 'verify']
|
| +
|
| +Importing a key that's not extractable...
|
| +
|
| +Trying to export as raw...
|
| +error is: InvalidAccessError: key is not extractable
|
| +PASS Rejected, as expected
|
| +Trying to export as jwk...
|
| +error is: InvalidAccessError: key is not extractable
|
| +PASS Rejected, as expected
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|