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

Unified Diff: LayoutTests/crypto/aes-kw-key-manipulation-expected.txt

Issue 298023002: [webcrypto] Import WebKit's webcrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Modify the tests to work in blink Created 6 years, 7 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
Index: LayoutTests/crypto/aes-kw-key-manipulation-expected.txt
diff --git a/LayoutTests/crypto/aes-kw-key-manipulation-expected.txt b/LayoutTests/crypto/aes-kw-key-manipulation-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e472788deb4d00c244150f09790137096a04ae53
--- /dev/null
+++ b/LayoutTests/crypto/aes-kw-key-manipulation-expected.txt
@@ -0,0 +1,25 @@
+Test generating, importing and exporting keys for AES-KW. Test that they can't be used with another algorithm.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Generating a key...
+PASS key.toString() is '[object Key]'
+PASS key.type is 'secret'
+PASS key.algorithm.name is 'AES-KW'
+PASS key.algorithm.length is 256
+
+Testing that the key can't be used with AES-CBC...
+error is: InvalidAccessError: key.algorithm does not match that of operation
+
+Exporting the key to raw...
+PASS exportedKey.toString() is '[object ArrayBuffer]'
+Importing it back...
+PASS importedKey.toString() is '[object Key]'
+PASS importedKey.type is 'secret'
+PASS importedKey.algorithm.name is 'AES-KW'
+PASS importedKey.algorithm.length is 256
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698