Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: LayoutTests/crypto/hmac-import-jwk-expected.txt

Issue 298023002: [webcrypto] Import WebKit's webcrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove FIXME for unrecognized jwk usages (supported now) Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/crypto/hmac-import-jwk.html ('k') | LayoutTests/crypto/import-jwk.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« no previous file with comments | « LayoutTests/crypto/hmac-import-jwk.html ('k') | LayoutTests/crypto/import-jwk.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698