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

Unified Diff: LayoutTests/crypto/aes-export-key.html

Issue 325323004: [webcrypto] Remove support for AES 192-bit keys (1 of 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « LayoutTests/crypto/aes-cbc-import-jwk-expected.txt ('k') | LayoutTests/crypto/aes-export-key-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/aes-export-key.html
diff --git a/LayoutTests/crypto/aes-export-key.html b/LayoutTests/crypto/aes-export-key.html
index 0fe35a19ec72fa7ef604fe2ef754ead2069014e1..e4da05cb6e79ab10c5d4159ee8c4b4296eeb25d1 100644
--- a/LayoutTests/crypto/aes-export-key.html
+++ b/LayoutTests/crypto/aes-export-key.html
@@ -18,7 +18,7 @@ var nonExtractable = false;
var jwkKey = {
kty: "oct",
- k: "jnOw99oOZFLIEPMrgJB55WL46tJSLGt7"
+ k: "jnOw99oOZFLIEPMrgJB55WL46tJSLGt7jnOw99oOZFI"
};
var jwkKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(jwkKey));
@@ -65,15 +65,15 @@ Promise.resolve(null).then(function(result) {
return crypto.subtle.exportKey("raw", key);
}).then(function(result) {
exportedData = result;
- shouldBe("bytesToHexString(new Uint8Array(exportedData))", "'8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b'");
+ shouldBe("bytesToHexString(new Uint8Array(exportedData))", "'8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b8e73b0f7da0e6452'");
debug("Exporting the key as JWK...");
return crypto.subtle.exportKey("jwk", key);
}).then(function(result) {
exportedJWK = JSON.parse(bytesToASCIIString(result));
shouldBe("exportedJWK.kty", "'oct'");
- shouldBe("exportedJWK.k", "'jnOw99oOZFLIEPMrgJB55WL46tJSLGt7'");
- shouldBe("exportedJWK.alg", "'A192CBC'");
+ shouldBe("exportedJWK.k", "'jnOw99oOZFLIEPMrgJB55WL46tJSLGt7jnOw99oOZFI'");
+ shouldBe("exportedJWK.alg", "'A256CBC'");
shouldBe("exportedJWK.ext", "true");
shouldBe("exportedJWK.use", "undefined");
shouldBe("exportedJWK.key_ops", "['encrypt', 'decrypt', 'wrapKey', 'unwrapKey']");
« no previous file with comments | « LayoutTests/crypto/aes-cbc-import-jwk-expected.txt ('k') | LayoutTests/crypto/aes-export-key-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698