OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="../resources/common.js"></script> |
| 6 <script src="../resources/rsa-cloneKey.js"></script> |
| 7 <script src="../resources/keys.js"></script> |
| 8 </head> |
| 9 <body> |
| 10 <script> |
| 11 description('Tests structured cloning of RSASSA-PKCS1-v1_5 keys'); |
| 12 |
| 13 jsTestIsAsync = true; |
| 14 |
| 15 function testClonePublicKeys() |
| 16 { |
| 17 return testCloneRSAPublicKeys('RSASSA-PKCS1-v1_5', [[], ['verify']], [kKeyDa
ta.rsa2, kKeyData.rsa3]); |
| 18 } |
| 19 |
| 20 function testClonePrivateKeys() |
| 21 { |
| 22 return testCloneRSAPrivateKeys('RSASSA-PKCS1-v1_5', [['sign']], [kKeyData.rs
a1, kKeyData.rsa4]); |
| 23 } |
| 24 |
| 25 testClonePublicKeys().then(testClonePrivateKeys).then(finishJSTest, failAndFinis
hJSTest) |
| 26 </script> |
| 27 </body> |
| 28 </html> |
OLD | NEW |