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

Unified Diff: LayoutTests/crypto/subtle/pbkdf2-deriveKey-failures-expected.txt

Issue 820523003: [webcrypto] Implement PBKDF2 (blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit Created 5 years, 11 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/subtle/pbkdf2-deriveKey-failures-expected.txt
diff --git a/LayoutTests/crypto/subtle/pbkdf2-deriveKey-failures-expected.txt b/LayoutTests/crypto/subtle/pbkdf2-deriveKey-failures-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a65c283bc0cd320539c824dc3aad8511610fb839
--- /dev/null
+++ b/LayoutTests/crypto/subtle/pbkdf2-deriveKey-failures-expected.txt
@@ -0,0 +1,32 @@
+Tests deriveKey() with various bad parameters for PBKDF2
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Importing the password...
+
+Deriving an AES key with no length...
+error is: TypeError: AesDerivedKeyParams: length: Missing required property
+
+Deriving an AES key with bad length...
+error is: OperationError: AES key length must be 128 or 256 bits
+
+Deriving an AES key with unsupported length...
+error is: OperationError: 192-bit AES keys are not supported
+
+Deriving an AES-CBC key with unsupported usage (sign)...
+error is: SyntaxError: Cannot create a key using the specified key usages.
+
+Deriving a zero-length HMAC key...
+error is: TypeError: HMAC key length must not be zero
+
+Deriving an ECDH key...
+error is: NotSupportedError: ECDH: Unsupported operation: get key length
+
+Deriving an RSA-OAEP key...
+error is: NotSupportedError: RSA-OAEP: Unsupported operation: get key length
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698