Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / subtle / rsassa-pkcs1-v1_5 / cloneKey.html
blob4b3b4c91989e2af1e325da0e8eb475d2d3240a4a
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');
13 jsTestIsAsync = true;
15 function testClonePublicKeys()
17 return testCloneRSAPublicKeys('RSASSA-PKCS1-v1_5', [[], ['verify']], [kKeyData.rsa2, kKeyData.rsa3]);
20 function testClonePrivateKeys()
22 return testCloneRSAPrivateKeys('RSASSA-PKCS1-v1_5', [['sign']], [kKeyData.rsa1, kKeyData.rsa4]);
25 testClonePublicKeys().then(testClonePrivateKeys).then(finishJSTest, failAndFinishJSTest)
26 </script>
27 </body>
28 </html>