OLD | NEW |
1 Test importing an RSA key for RSASSA-PKCS1-v1_5. | 1 Test importing an RSA key 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 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 'RSASSA-PKCS1-v1_5' | 10 PASS publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5' |
11 PASS publicKey.algorithm.modulusLength is 2048 | 11 PASS publicKey.algorithm.modulusLength is 2048 |
12 PASS bytesToHexString(publicKey.algorithm.publicExponent) is '010001' | 12 PASS bytesToHexString(publicKey.algorithm.publicExponent) is '010001' |
13 PASS publicKey.algorithm.hash.name is 'SHA-256' | 13 PASS publicKey.algorithm.hash.name is 'SHA-256' |
14 | 14 |
15 Importing a private key... | 15 Importing a private key... |
16 PASS privateKey.toString() is '[object CryptoKey]' | 16 PASS privateKey.toString() is '[object CryptoKey]' |
17 PASS privateKey.type is 'private' | 17 PASS privateKey.type is 'private' |
18 PASS privateKey.usages is ['sign'] | 18 PASS privateKey.usages is ['sign'] |
19 PASS privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5' | 19 PASS privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5' |
20 PASS privateKey.algorithm.modulusLength is 2048 | 20 PASS privateKey.algorithm.modulusLength is 2048 |
21 PASS bytesToHexString(privateKey.algorithm.publicExponent) is '010001' | 21 PASS bytesToHexString(privateKey.algorithm.publicExponent) is '010001' |
22 PASS privateKey.algorithm.hash.name is 'SHA-256' | 22 PASS privateKey.algorithm.hash.name is 'SHA-256' |
23 PASS successfullyParsed is true | 23 PASS successfullyParsed is true |
24 | 24 |
25 TEST COMPLETE | 25 TEST COMPLETE |
26 | 26 |
OLD | NEW |