Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: LayoutTests/crypto/subtle/aes-cbc-unwrap-failures.html

Issue 957713004: [WebCrypto] Split LayoutTests/crypto/subtle into per-algorithm directories (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/crypto/subtle/aes-cbc-unwrap-failures.html
diff --git a/LayoutTests/crypto/subtle/aes-cbc-unwrap-failures.html b/LayoutTests/crypto/subtle/aes-cbc-unwrap-failures.html
deleted file mode 100644
index bef3c092fad9955a64fdd8339d567edc7767ead1..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/subtle/aes-cbc-unwrap-failures.html
+++ /dev/null
@@ -1,38 +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("Test unwrapping an RSA key with AES-CBC.");
-
-jsTestIsAsync = true;
-
-var extractable = true;
-var nonExtractable = false;
-
-var unwrappingKeyOctets = hexStringToUint8Array("2a00e0e776e94e4dc89bf947cebdebe1");
-var wrappedKey = hexStringToUint8Array("b490dedb3abc3fd545e146538e6cc3ca"); // An empty encrypted JSON.
-
-debug("Importing an unwrapping key...");
-crypto.subtle.importKey("raw", unwrappingKeyOctets, {name: "AES-CBC"}, nonExtractable, ["unwrapKey"]).then(function(result) {
- unwrappingKey = result;
- shouldBe("unwrappingKey.algorithm.name", "'AES-CBC'");
- var unwrapAlgorithm = {name: "AES-CBC", iv: hexStringToUint8Array("000102030405060708090a0b0c0d0e0f")};
- debug("Unwrapping a key...");
- var importAlgorithm = {name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-1'} };
- return crypto.subtle.unwrapKey("jwk", wrappedKey, unwrappingKey, unwrapAlgorithm, importAlgorithm, extractable, ["sign"]);
-}).then(undefined, function(result) {
- logError(result);
- finishJSTest();
-}).then(finishJSTest, failAndFinishJSTest);
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698