Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / subtle / aes-gcm / cloneKey.html
blob5ec36417d8bcef0a61065cdabc12f2a7ec2d4c2a
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/symmetric-cloneKey.js"></script>
7 </head>
8 <body>
9 <script>
10 description('Tests structured cloning of AES-GCM keys');
12 jsTestIsAsync = true;
14 var k128BitData = "30112233445566778899aabbccddeeff";
15 var k256BitData = "00112233445546778899aabbccddeeff000102030405060708090a0b0c0d0e0f";
17 var kPossibleExtractable = [true, false];
18 var kPossibleKeyUsage = [['encrypt'], ['decrypt', 'wrapKey'], ['encrypt', 'wrapKey', 'unwrapKey']];
19 var kKeyData = [k128BitData, k256BitData];
20 var kKeyHasLength = true;
22 testCloneSymmetricKeys('AES-GCM', [[]], kPossibleExtractable, kPossibleKeyUsage, kKeyData, kKeyHasLength).then(finishJSTest, failAndFinishJSTest);
24 </script>
25 </body>
26 </html>