| OLD | NEW |
| 1 Tests deriveKey() with various bad parameters for ECDH | 1 Tests deriveKey() with various bad parameters for ECDH |
| 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 Importing the private key... | 6 Importing the private key... |
| 7 Importing the public key... | 7 Importing the public key... |
| 8 | 8 |
| 9 Deriving an AES key with no length... | 9 Deriving an AES key with no length... |
| 10 error is: TypeError: AesDerivedKeyParams: length: Missing required property | 10 error is: TypeError: AesDerivedKeyParams: length: Missing required property |
| 11 | 11 |
| 12 Deriving an AES key with bad length... | 12 Deriving an AES key with bad length... |
| 13 error is: OperationError: AES key length must be 128 or 256 bits | 13 error is: OperationError: AES key length must be 128 or 256 bits |
| 14 | 14 |
| 15 Deriving an AES key with unsupported length... | 15 Deriving an AES key with unsupported length... |
| 16 error is: NotSupportedError: 192-bit AES keys are not supported | 16 error is: OperationError: 192-bit AES keys are not supported |
| 17 | 17 |
| 18 Deriving using an ECDH key that has deriveBits but NOT deriveKey... usage | 18 Deriving using an ECDH key that has deriveBits but NOT deriveKey... usage |
| 19 error is: InvalidAccessError: key.usages does not permit this operation | 19 error is: InvalidAccessError: key.usages does not permit this operation |
| 20 | 20 |
| 21 Deriving using public instead of private key... | 21 Deriving using public instead of private key... |
| 22 error is: InvalidAccessError: key.usages does not permit this operation | 22 error is: InvalidAccessError: key.usages does not permit this operation |
| 23 | 23 |
| 24 Deriving using private instead of public key... | 24 Deriving using private instead of public key... |
| 25 error is: InvalidAccessError: The public parameter for ECDH key derivation is no
t a public EC key | 25 error is: InvalidAccessError: The public parameter for ECDH key derivation is no
t a public EC key |
| 26 | 26 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 Deriving an ECDH key using ECDH... | 51 Deriving an ECDH key using ECDH... |
| 52 error is: NotSupportedError: ECDH: Unsupported operation: get key length | 52 error is: NotSupportedError: ECDH: Unsupported operation: get key length |
| 53 | 53 |
| 54 Deriving an RSA-OAEP key using ECDH... | 54 Deriving an RSA-OAEP key using ECDH... |
| 55 error is: NotSupportedError: RSA-OAEP: Unsupported operation: get key length | 55 error is: NotSupportedError: RSA-OAEP: Unsupported operation: get key length |
| 56 | 56 |
| 57 PASS successfullyParsed is true | 57 PASS successfullyParsed is true |
| 58 | 58 |
| 59 TEST COMPLETE | 59 TEST COMPLETE |
| 60 | 60 |
| OLD | NEW |