Index: LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt |
diff --git a/LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt b/LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f2be32a9f2656f8b04cbe00e04c9de5e2203d593 |
--- /dev/null |
+++ b/LayoutTests/crypto/subtle/hkdf-deriveBits-failures-expected.txt |
@@ -0,0 +1,18 @@ |
+Test bad inputs to HKDF deriveBits() |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+ |
+deriveBits() with an unsupported hash... |
+error is: NotSupportedError: HkdfParams: hash: HMAC: Unsupported operation: digest |
+ |
+deriveBits() with an ECDH key... |
+error is: InvalidAccessError: key.algorithm does not match that of operation |
+ |
+deriveBits() with length of 65281... |
+error is: OperationError: The length provided for HKDF is too large. |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |