| OLD | NEW |
| 1 Test generating an RSA key pair for RSASSA-PKCS1-v1_5. | 1 Test generating an RSA key pair for RSASSA-PKCS1-v1_5. |
| 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 'RSASSA-PKCS1-v1_5' | 9 PASS keyPair.publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5' |
| 10 PASS keyPair.publicKey.algorithm.hash.name is 'SHA-256' | 10 PASS keyPair.publicKey.algorithm.hash.name is 'SHA-256' |
| 11 PASS keyPair.publicKey.algorithm.modulusLength is 512 | 11 PASS keyPair.publicKey.algorithm.modulusLength is 512 |
| 12 PASS bytesToHexString(keyPair.publicKey.algorithm.publicExponent) is '010001' | 12 PASS bytesToHexString(keyPair.publicKey.algorithm.publicExponent) is '010001' |
| 13 PASS keyPair.publicKey.usages is ["verify"] | 13 PASS keyPair.publicKey.usages is ["verify"] |
| 14 PASS keyPair.privateKey.type is 'private' | 14 PASS keyPair.privateKey.type is 'private' |
| 15 PASS keyPair.privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5' | 15 PASS keyPair.privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5' |
| 16 PASS keyPair.privateKey.algorithm.hash.name is 'SHA-256' | 16 PASS keyPair.privateKey.algorithm.hash.name is 'SHA-256' |
| 17 PASS keyPair.privateKey.algorithm.modulusLength is 512 | 17 PASS keyPair.privateKey.algorithm.modulusLength is 512 |
| 18 PASS bytesToHexString(keyPair.privateKey.algorithm.publicExponent) is '010001' | 18 PASS bytesToHexString(keyPair.privateKey.algorithm.publicExponent) is '010001' |
| 19 PASS keyPair.privateKey.usages is ["sign"] | 19 PASS keyPair.privateKey.usages is ["sign"] |
| 20 | 20 |
| 21 Testing that custom attributes on keys survive garbage collection... | 21 Testing that custom attributes on keys survive garbage collection... |
| 22 PASS keyPair.publicKey.foo is 'bar' | 22 PASS keyPair.publicKey.foo is 'bar' |
| 23 PASS successfullyParsed is true | 23 PASS successfullyParsed is true |
| 24 | 24 |
| 25 TEST COMPLETE | 25 TEST COMPLETE |
| 26 | 26 |
| OLD | NEW |