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/symmetric-cloneKey.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <script> |
| 10 description("Tests structured cloning of HKDF keys"); |
| 11 |
| 12 jsTestIsAsync = true; |
| 13 |
| 14 var kEmptyData = ""; |
| 15 var k8BitData = "30"; |
| 16 var k64BitData = "0011223344554677"; |
| 17 var k88BitData = "00112233445546778899aa"; |
| 18 var k128BitData = "30112233445566778899aabbccddeeff"; |
| 19 |
| 20 var kPossibleHashAlgorithms = ['SHA-1', 'SHA-256', 'SHA-512']; |
| 21 var kPossibleExtractable = [false]; |
| 22 var kPossibleKeyUsage = [['deriveBits'], ['deriveKey'], ['deriveKey', 'deriveBit
s']] |
| 23 var kKeyData = [kEmptyData, k8BitData, k64BitData, k88BitData, k128BitData]; |
| 24 var kKeyHasLength = false; |
| 25 |
| 26 testCloneSymmetricKeys('HKDF', kPossibleHashAlgorithms, kPossibleExtractable, kP
ossibleKeyUsage, kKeyData, kKeyHasLength).then(finishJSTest, failAndFinishJSTest
); |
| 27 |
| 28 </script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |