| OLD | NEW |
| (Empty) |
| 1 Test importing an RSA key for RSASSA-PKCS1-v1_5. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 Importing a public key... | |
| 7 PASS publicKey.toString() is '[object CryptoKey]' | |
| 8 PASS publicKey.type is 'public' | |
| 9 PASS publicKey.usages is ['verify'] | |
| 10 PASS publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5' | |
| 11 PASS publicKey.algorithm.modulusLength is 2048 | |
| 12 PASS bytesToHexString(publicKey.algorithm.publicExponent) is '010001' | |
| 13 PASS publicKey.algorithm.hash.name is 'SHA-256' | |
| 14 | |
| 15 Importing a private key... | |
| 16 PASS privateKey.toString() is '[object CryptoKey]' | |
| 17 PASS privateKey.type is 'private' | |
| 18 PASS privateKey.usages is ['sign'] | |
| 19 PASS privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5' | |
| 20 PASS privateKey.algorithm.modulusLength is 2048 | |
| 21 PASS bytesToHexString(privateKey.algorithm.publicExponent) is '010001' | |
| 22 PASS privateKey.algorithm.hash.name is 'SHA-256' | |
| 23 PASS successfullyParsed is true | |
| 24 | |
| 25 TEST COMPLETE | |
| 26 | |
| OLD | NEW |