| OLD | NEW |
| (Empty) | |
| 1 Test importing and exporting an EC public key in raw format. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Importing raw (uncompressed) public key... |
| 7 PASS publicKey.toString() is '[object CryptoKey]' |
| 8 PASS publicKey.type is 'public' |
| 9 PASS publicKey.usages is [] |
| 10 PASS publicKey.algorithm.name is 'ECDH' |
| 11 PASS publicKey.algorithm.namedCurve is 'P-256' |
| 12 Exporting to raw... |
| 13 PASS: Exported to raw should be [044ea34391aa73885454bc45df3fdcc4a70262fa4621ffe
25b5790590c340a4bd9265ef2b3f9a86e2959a960d90323465d60cd4a90d314c5de3f869ad0d4bf6
c10] and was |
| 14 Importing raw (compressed) public key... |
| 15 PASS publicKey.toString() is '[object CryptoKey]' |
| 16 PASS publicKey.type is 'public' |
| 17 PASS publicKey.usages is [] |
| 18 PASS publicKey.algorithm.name is 'ECDH' |
| 19 PASS publicKey.algorithm.namedCurve is 'P-256' |
| 20 Exporting to raw... |
| 21 PASS: Exported to raw should be [044ea34391aa73885454bc45df3fdcc4a70262fa4621ffe
25b5790590c340a4bd9265ef2b3f9a86e2959a960d90323465d60cd4a90d314c5de3f869ad0d4bf6
c10] and was |
| 22 Importing invalid raw public key... |
| 23 error is: DataError: |
| 24 PASS successfullyParsed is true |
| 25 |
| 26 TEST COMPLETE |
| 27 |
| OLD | NEW |