Index: LayoutTests/crypto/wrapKey-lacks-usage.html |
diff --git a/LayoutTests/crypto/wrapKey-lacks-usage.html b/LayoutTests/crypto/wrapKey-lacks-usage.html |
deleted file mode 100644 |
index dc269b2704addee0e053aaf7ba8e91191e6fd13d..0000000000000000000000000000000000000000 |
--- a/LayoutTests/crypto/wrapKey-lacks-usage.html |
+++ /dev/null |
@@ -1,49 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
-<head> |
-<script src="../resources/js-test.js"></script> |
-<script src="resources/common.js"></script> |
-</head> |
-<body> |
-<p id="description"></p> |
-<div id="console"></div> |
- |
-<script> |
-description("Tests that wrapping keys must have the 'wrapKey' usage."); |
- |
-jsTestIsAsync = true; |
- |
-function importWrappingKey() |
-{ |
- var data = new Uint8Array(16); |
- var extractable = true; |
- var keyUsages = ['encrypt']; |
- |
- return crypto.subtle.importKey('raw', data, {name: 'AES-CBC'}, extractable, keyUsages); |
-} |
- |
-function importKeyToWrap() |
-{ |
- var data = new Uint8Array(16); |
- var extractable = true; |
- var keyUsages = ['sign']; |
- |
- return crypto.subtle.importKey('raw', data, {name: 'HMAC', hash: {name: 'SHA-1'}}, extractable, keyUsages); |
-} |
- |
-importWrappingKey().then(function(result) { |
- wrappingKey = result; |
- return importKeyToWrap(); |
-}).then(function(result) { |
- key = result; |
- wrapAlgorithm = {name: 'aes-cbc', iv: new Uint8Array(16)}; |
- |
- return crypto.subtle.wrapKey('raw', key, wrappingKey, wrapAlgorithm); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
-}).then(finishJSTest, failAndFinishJSTest); |
- |
-</script> |
- |
-</body> |
-</html> |