Index: LayoutTests/crypto/hmac-import-jwk-expected.txt |
diff --git a/LayoutTests/crypto/hmac-import-jwk-expected.txt b/LayoutTests/crypto/hmac-import-jwk-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7ea266d14617218b180ae375150fd84966570d2a |
--- /dev/null |
+++ b/LayoutTests/crypto/hmac-import-jwk-expected.txt |
@@ -0,0 +1,22 @@ |
+Test importing a JWK key for HMAC. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+Importing a key... |
+ |
+PASS key.type is 'secret' |
+PASS key.extractable is false |
+PASS key.algorithm.name is 'HMAC' |
+PASS key.algorithm.length is 256 |
+PASS key.usages is ["sign", "verify"] |
+ |
+Using the key to sign message 'foo'... |
+PASS bytesToHexString(new Uint8Array(signature)) is 'e03736fe098892b2a2da77812431f7c014d32e2fd69f3bcff883ac923a8fa2da' |
+ |
+Verifying the signature... |
+PASS verificationResult is true |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |