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

Unified Diff: LayoutTests/crypto/aes-cbc-import-jwk.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
Index: LayoutTests/crypto/aes-cbc-import-jwk.html
diff --git a/LayoutTests/crypto/aes-cbc-import-jwk.html b/LayoutTests/crypto/aes-cbc-import-jwk.html
index 8deb8975583059ef55dc16ecfd3b4a155e1a2635..3150c1141923c0f4f0aab44811f2692d3fe83f3b 100644
--- a/LayoutTests/crypto/aes-cbc-import-jwk.html
+++ b/LayoutTests/crypto/aes-cbc-import-jwk.html
@@ -16,14 +16,15 @@ jsTestIsAsync = true;
var extractable = true;
var iv = hexStringToUint8Array("000102030405060708090a0b0c0d0e0f");
-var plaintext = hexStringToUint8Array("6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710");
+var plaintext = hexStringToUint8Array("6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6");
+var cipherText = ""
var jwkKey = {
"kty": "oct",
- "alg": "A192CBC",
+ "alg": "A256CBC",
"use": "enc",
"ext": true,
- "k": "jnOw99oOZFLIEPMrgJB55WL46tJSLGt7"
+ "k": "YD3rEBXKcb4rc67whX13gR81LAc7YQjXLZgQowkU3_Q"
};
var jwkKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(jwkKey));
@@ -35,14 +36,14 @@ crypto.subtle.importKey("jwk", jwkKeyAsArrayBuffer, {name: 'AES-CBC'}, false, ["
shouldBe("key.type", "'secret'");
shouldBe("key.extractable", "false");
shouldBe("key.algorithm.name", "'AES-CBC'");
- shouldBe("key.algorithm.length", "192");
+ shouldBe("key.algorithm.length", "256");
shouldBe("key.usages", '["encrypt"]');
debug("\nUsing the key to encrypt plaintext...");
return crypto.subtle.encrypt({name: "aes-cbc", iv: iv}, key, plaintext);
}).then(function(result) {
encryptionResult = result;
- shouldBe("bytesToHexString(new Uint8Array(encryptionResult))", "'4f021db243bc633d7178183a9fa071e8b4d9ada9ad7dedf4e5e738763f69145a571b242012fb7ae07fa9baac3df102e008b0e27988598881d920a9e64f5615cd612ccd79224b350935d45dd6a98f8176'");
+ shouldBe("bytesToHexString(new Uint8Array(encryptionResult))", "'f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f777bc6702c7d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6'");
finishJSTest();
}).then(finishJSTest, failAndFinishJSTest);
« no previous file with comments | « LayoutTests/crypto/aes-cbc-encrypt-decrypt-expected.txt ('k') | LayoutTests/crypto/aes-cbc-import-jwk-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698