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