Index: LayoutTests/crypto/subtle/hkdf/cloneKey.html |
diff --git a/LayoutTests/crypto/subtle/hkdf/cloneKey.html b/LayoutTests/crypto/subtle/hkdf/cloneKey.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f27b06015270b54b97e512fef5fcf6b2659507d0 |
--- /dev/null |
+++ b/LayoutTests/crypto/subtle/hkdf/cloneKey.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+<script src="../resources/common.js"></script> |
+<script src="../resources/symmetric-cloneKey.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Tests structured cloning of HKDF keys"); |
+ |
+jsTestIsAsync = true; |
+ |
+var kEmptyData = ""; |
+var k8BitData = "30"; |
+var k64BitData = "0011223344554677"; |
+var k88BitData = "00112233445546778899aa"; |
+var k128BitData = "30112233445566778899aabbccddeeff"; |
+ |
+var kPossibleHashAlgorithms = ['SHA-1', 'SHA-256', 'SHA-512']; |
+var kPossibleExtractable = [false]; |
+var kPossibleKeyUsage = [['deriveBits'], ['deriveKey'], ['deriveKey', 'deriveBits']] |
+var kKeyData = [kEmptyData, k8BitData, k64BitData, k88BitData, k128BitData]; |
+var kKeyHasLength = false; |
+ |
+testCloneSymmetricKeys('HKDF', kPossibleHashAlgorithms, kPossibleExtractable, kPossibleKeyUsage, kKeyData, kKeyHasLength).then(finishJSTest, failAndFinishJSTest); |
+ |
+</script> |
+</body> |
+</html> |