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

Unified Diff: LayoutTests/crypto/subtle/aes-cbc-wrap-rsa.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-wrap-rsa.html
diff --git a/LayoutTests/crypto/subtle/aes-cbc-wrap-rsa.html b/LayoutTests/crypto/subtle/aes-cbc-wrap-rsa.html
deleted file mode 100644
index f00453f0a19dddf8b85d009c99b844363a6f11ad..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/subtle/aes-cbc-wrap-rsa.html
+++ /dev/null
@@ -1,50 +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 wrapping an RSA key with AES-CBC.");
-
-jsTestIsAsync = true;
-
-var extractable = true;
-var nonExtractable = false;
-
-var publicKeyJSON = {
- kty: "RSA",
- alg: "RS256",
- n: "rcCUCv7Oc1HVam1DIhCzqknThWawOp8QLk8Ziy2p10ByjQFCajoFiyuAWl-R1WXZaf4xitLRracT9agpzIzc-MbLSHIGgWQGO21lGiImy5ftZ-D8bHAqRz2y15pzD4c4CEou7XSSLDoRnR0QG5MsDhD6s2gV9mwHkrtkCxtMWdBi-77as8wGmlNRldcOSgZDLK8UnCSgA1OguZ989bFyc8tOOEIb0xUSfPSz3LPSCnyYz68aDjmKVeNH-ig857OScyWbGyEy3Biw64qun3juUlNWsJ3zngkOdteYWytx5Qr4XKNs6R-Myyq72KUp02mJDZiiyiglxML_i3-_CeecCw",
- e: "AQAB",
- ext: true,
- use: "sig"
-};
-
-var wrappingKeyOctets = hexStringToUint8Array("2a00e0e776e94e4dc89bf947cebdebe1");
-
-debug("Importing a key to wrap...");
-
-crypto.subtle.importKey("jwk", publicKeyJSON, { name: "RSASSA-PKCS1-v1_5", hash: {name: "Sha-256"} }, extractable, ["verify"]).then(function(result) {
- key = result;
- shouldBe("key.algorithm.name", "'RSASSA-PKCS1-v1_5'");
- debug("Importing a key encryption key...");
- return crypto.subtle.importKey("raw", wrappingKeyOctets, {name: "AES-CBC"}, nonExtractable, ["wrapKey"]);
-}).then(function(result) {
- wrappingKey = result;
- shouldBe("wrappingKey.algorithm.name", "'AES-CBC'");
- var wrapAlgorithm = {name: "AES-CBC", iv: hexStringToUint8Array("000102030405060708090a0b0c0d0e0f")};
- return crypto.subtle.wrapKey("jwk", key, wrappingKey, wrapAlgorithm);
-}).then(function(result) {
- wrappedKey = result;
- shouldBe("wrappedKey.toString()", "'[object ArrayBuffer]'");
-}).then(finishJSTest, failAndFinishJSTest);
-
-</script>
-
-</body>
-</html>
« no previous file with comments | « LayoutTests/crypto/subtle/aes-cbc-unwrap-rsa-expected.txt ('k') | LayoutTests/crypto/subtle/aes-cbc-wrap-rsa-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698