4 <script src=
"../../../resources/js-test.js"></script>
5 <script src=
"../resources/common.js"></script>
6 <script src=
"../resources/symmetric-cloneKey.js"></script>
10 description('Tests structured cloning of HMAC keys');
15 var k64BitData
= "0011223344554677";
16 var k88BitData
= "00112233445546778899aa";
17 var k128BitData
= "30112233445566778899aabbccddeeff";
19 var kPossibleHashAlgorithms
= ['SHA-1', 'SHA-256', 'SHA-512'];
20 var kPossibleExtractable
= [true, false];
21 var kPossibleKeyUsages
= [['sign'], ['verify'], ['sign', 'verify']];
22 var kKeyData
= [k8BitData
, k64BitData
, k88BitData
, k128BitData
];
23 var kKeyHasLength
= true;
25 testCloneSymmetricKeys('HMAC', kPossibleHashAlgorithms
, kPossibleExtractable
, kPossibleKeyUsages
, kKeyData
, kKeyHasLength
).then(finishJSTest
, failAndFinishJSTest
);