| OLD | NEW |
| 1 Test importing an EC public and private key for ECDSA. | 1 Test importing an EC public and private key for ECDSA. |
| 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 a public key... | 6 Importing a public key... |
| 7 PASS publicKey.toString() is '[object CryptoKey]' | 7 PASS publicKey.toString() is '[object CryptoKey]' |
| 8 PASS publicKey.type is 'public' | 8 PASS publicKey.type is 'public' |
| 9 PASS publicKey.usages is ['verify'] | 9 PASS publicKey.usages is ['verify'] |
| 10 PASS publicKey.algorithm.name is 'ECDSA' | 10 PASS publicKey.algorithm.name is 'ECDSA' |
| 11 PASS publicKey.algorithm.namedCurve is 'P-256' | 11 PASS publicKey.algorithm.namedCurve is 'P-256' |
| 12 | 12 |
| 13 Importing a private key... | 13 Importing a private key... |
| 14 PASS privateKey.toString() is '[object CryptoKey]' | 14 PASS privateKey.toString() is '[object CryptoKey]' |
| 15 PASS privateKey.type is 'private' | 15 PASS privateKey.type is 'private' |
| 16 PASS privateKey.usages is ['sign'] | 16 PASS privateKey.usages is ['sign'] |
| 17 PASS privateKey.algorithm.name is 'ECDSA' | 17 PASS privateKey.algorithm.name is 'ECDSA' |
| 18 PASS privateKey.algorithm.namedCurve is 'P-384' | 18 PASS privateKey.algorithm.namedCurve is 'P-384' |
| 19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
| 20 | 20 |
| 21 TEST COMPLETE | 21 TEST COMPLETE |
| 22 | 22 |
| OLD | NEW |