Index: LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt |
diff --git a/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt b/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt |
index 38a3e45f9ef6ace19086d89c038c717bb8571544..6d658d28cb7821adec32677f289336e2781e5ce1 100644 |
--- a/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt |
+++ b/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt |
@@ -3,15 +3,35 @@ Tests bad inputs to ECDH's deriveBits() |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+deriveBits() without algorithm name or public key... |
error is: TypeError: Algorithm: name: Missing or not a string |
+ |
+deriveBits() without public key... |
error is: TypeError: EcdhKeyDeriveParams: public: Missing required property |
+ |
+deriveBits() with algorithm that is null... |
error is: TypeError: Algorithm: Not an object |
+ |
+deriveBits() with algorithm that is -1... |
error is: NotSupportedError: Algorithm: Unrecognized name |
+ |
+deriveBits() with public key that is null... |
error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey |
+ |
+deriveBits() with public key that is -1... |
error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey |
+ |
+deriveBits() with public key that is a string... |
error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey |
+ |
+deriveBits() with wrong curve public key... |
error is: InvalidAccessError: The public parameter for ECDH key derivation is for a different named curve |
+ |
+deriveBits() with a private key as the 'public' parameter |
error is: InvalidAccessError: The public parameter for ECDH key derivation is not a public EC key |
+ |
+deriveBits() with public key that is for ECDSA... |
error is: InvalidAccessError: The public parameter for ECDH key derivation must be for ECDH |
PASS successfullyParsed is true |