| OLD | NEW |
| (Empty) |
| 1 Test generating an EC key pair for ECDH. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 Generating a key pair... | |
| 7 PASS keyPair.toString() is '[object Object]' | |
| 8 PASS keyPair.publicKey.type is 'public' | |
| 9 PASS keyPair.publicKey.algorithm.name is 'ECDH' | |
| 10 PASS keyPair.publicKey.algorithm.namedCurve is 'P-256' | |
| 11 PASS keyPair.publicKey.usages is [] | |
| 12 PASS keyPair.privateKey.type is 'private' | |
| 13 PASS keyPair.privateKey.algorithm.name is 'ECDH' | |
| 14 PASS keyPair.privateKey.algorithm.namedCurve is 'P-256' | |
| 15 PASS keyPair.privateKey.usages is ["deriveBits"] | |
| 16 | |
| 17 Testing that custom attributes on keys survive garbage collection... | |
| 18 PASS keyPair.publicKey.foo is 'bar' | |
| 19 PASS successfullyParsed is true | |
| 20 | |
| 21 TEST COMPLETE | |
| 22 | |
| OLD | NEW |