| OLD | NEW |
| 1 Test generating an EC key pair for ECDSA. | 1 Test generating an EC key pair 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 Generating a key pair... | 6 Generating a key pair... |
| 7 PASS keyPair.toString() is '[object Object]' | 7 PASS keyPair.toString() is '[object Object]' |
| 8 PASS keyPair.publicKey.type is 'public' | 8 PASS keyPair.publicKey.type is 'public' |
| 9 PASS keyPair.publicKey.algorithm.name is 'ECDSA' | 9 PASS keyPair.publicKey.algorithm.name is 'ECDSA' |
| 10 PASS keyPair.publicKey.algorithm.namedCurve is 'P-256' | 10 PASS keyPair.publicKey.algorithm.namedCurve is 'P-256' |
| 11 PASS keyPair.publicKey.usages is ["verify"] | 11 PASS keyPair.publicKey.usages is ["verify"] |
| 12 PASS keyPair.privateKey.type is 'private' | 12 PASS keyPair.privateKey.type is 'private' |
| 13 PASS keyPair.privateKey.algorithm.name is 'ECDSA' | 13 PASS keyPair.privateKey.algorithm.name is 'ECDSA' |
| 14 PASS keyPair.privateKey.algorithm.namedCurve is 'P-256' | 14 PASS keyPair.privateKey.algorithm.namedCurve is 'P-256' |
| 15 PASS keyPair.privateKey.usages is ["sign"] | 15 PASS keyPair.privateKey.usages is ["sign"] |
| 16 | 16 |
| 17 Testing that custom attributes on keys survive garbage collection... | 17 Testing that custom attributes on keys survive garbage collection... |
| 18 PASS keyPair.publicKey.foo is 'bar' | 18 PASS keyPair.publicKey.foo is 'bar' |
| 19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
| 20 | 20 |
| 21 TEST COMPLETE | 21 TEST COMPLETE |
| 22 | 22 |
| OLD | NEW |