| OLD | NEW |
| (Empty) |
| 1 Tests bad inputs to ECDH's deriveBits() | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 deriveBits() without algorithm name or public key... | |
| 8 error is: TypeError: Algorithm: name: Missing or not a string | |
| 9 | |
| 10 deriveBits() without public key... | |
| 11 error is: TypeError: EcdhKeyDeriveParams: public: Missing required property | |
| 12 | |
| 13 deriveBits() with algorithm that is null... | |
| 14 error is: TypeError: Algorithm: Not an object | |
| 15 | |
| 16 deriveBits() with algorithm that is -1... | |
| 17 error is: NotSupportedError: Algorithm: Unrecognized name | |
| 18 | |
| 19 deriveBits() with public key that is null... | |
| 20 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey | |
| 21 | |
| 22 deriveBits() with public key that is -1... | |
| 23 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey | |
| 24 | |
| 25 deriveBits() with public key that is a string... | |
| 26 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey | |
| 27 | |
| 28 deriveBits() with wrong curve public key... | |
| 29 error is: InvalidAccessError: The public parameter for ECDH key derivation is fo
r a different named curve | |
| 30 | |
| 31 deriveBits() with a private key as the 'public' parameter | |
| 32 error is: InvalidAccessError: The public parameter for ECDH key derivation is no
t a public EC key | |
| 33 | |
| 34 deriveBits() with public key that is for ECDSA... | |
| 35 error is: InvalidAccessError: The public parameter for ECDH key derivation must
be for ECDH | |
| 36 PASS successfullyParsed is true | |
| 37 | |
| 38 TEST COMPLETE | |
| 39 | |
| OLD | NEW |