Index: LayoutTests/crypto/subtle/aes-cbc/cloneKey.html |
diff --git a/LayoutTests/crypto/subtle/aes-cbc/cloneKey.html b/LayoutTests/crypto/subtle/aes-cbc/cloneKey.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..79af0de477d39bf7cb1167d177e2cfaf2acfb377 |
--- /dev/null |
+++ b/LayoutTests/crypto/subtle/aes-cbc/cloneKey.html |
@@ -0,0 +1,26 @@ |
+<!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 AES-CBC keys'); |
+ |
+jsTestIsAsync = true; |
+ |
+var k128BitData = "30112233445566778899aabbccddeeff"; |
+var k256BitData = "00112233445546778899aabbccddeeff000102030405060708090a0b0c0d0e0f"; |
+ |
+var kPossibleExtractable = [true, false]; |
+var kPossibleKeyUsage = [['encrypt'], ['decrypt', 'wrapKey'], ['encrypt', 'wrapKey', 'unwrapKey']]; |
+var kKeyData = [k128BitData, k256BitData]; |
+var kKeyHasLength = true; |
+ |
+testCloneSymmetricKeys('AES-CBC', [[]], kPossibleExtractable, kPossibleKeyUsage, kKeyData, kKeyHasLength).then(finishJSTest, failAndFinishJSTest); |
+ |
+</script> |
+</body> |
+</html> |