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 |
| 7 deriveBits() without algorithm name or public key... |
6 error is: TypeError: Algorithm: name: Missing or not a string | 8 error is: TypeError: Algorithm: name: Missing or not a string |
| 9 |
| 10 deriveBits() without public key... |
7 error is: TypeError: EcdhKeyDeriveParams: public: Missing required property | 11 error is: TypeError: EcdhKeyDeriveParams: public: Missing required property |
| 12 |
| 13 deriveBits() with algorithm that is null... |
8 error is: TypeError: Algorithm: Not an object | 14 error is: TypeError: Algorithm: Not an object |
| 15 |
| 16 deriveBits() with algorithm that is -1... |
9 error is: NotSupportedError: Algorithm: Unrecognized name | 17 error is: NotSupportedError: Algorithm: Unrecognized name |
| 18 |
| 19 deriveBits() with public key that is null... |
10 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey | 20 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey |
| 21 |
| 22 deriveBits() with public key that is -1... |
11 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey | 23 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey |
| 24 |
| 25 deriveBits() with public key that is a string... |
12 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey | 26 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey |
| 27 |
| 28 deriveBits() with wrong curve public key... |
13 error is: InvalidAccessError: The public parameter for ECDH key derivation is fo
r a different named curve | 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 |
14 error is: InvalidAccessError: The public parameter for ECDH key derivation is no
t a public EC key | 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... |
15 error is: InvalidAccessError: The public parameter for ECDH key derivation must
be for ECDH | 35 error is: InvalidAccessError: The public parameter for ECDH key derivation must
be for ECDH |
16 PASS successfullyParsed is true | 36 PASS successfullyParsed is true |
17 | 37 |
18 TEST COMPLETE | 38 TEST COMPLETE |
19 | 39 |
OLD | NEW |