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

Unified Diff: LayoutTests/crypto/rsa-oaep-generate-non-extractable-key.html

Issue 333063004: Speed up slow tests by reducing RSA modulus size (from 2048 --> 512). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more tests 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 | « no previous file | LayoutTests/crypto/rsa-oaep-generate-non-extractable-key-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/rsa-oaep-generate-non-extractable-key.html
diff --git a/LayoutTests/crypto/rsa-oaep-generate-non-extractable-key.html b/LayoutTests/crypto/rsa-oaep-generate-non-extractable-key.html
index 493d4acb785145cbe330852d900418ced18f1b39..9dc0b34618689b627c8c46f1bab737e60a3ef019 100644
--- a/LayoutTests/crypto/rsa-oaep-generate-non-extractable-key.html
+++ b/LayoutTests/crypto/rsa-oaep-generate-non-extractable-key.html
@@ -17,7 +17,7 @@ var algorithmKeyGen = {
name: "RSA-OAEP",
hash: {name: "sha-256"},
// RsaKeyGenParams
- modulusLength: 2048,
+ modulusLength: 512,
publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // Equivalent to 65537
};
var nonExtractable = false;
@@ -29,13 +29,13 @@ crypto.subtle.generateKey(algorithmKeyGen, nonExtractable, []).then(function(res
shouldBe("keyPair.publicKey.type", "'public'");
shouldBe("keyPair.publicKey.extractable", "true");
shouldBe("keyPair.publicKey.algorithm.name", "'RSA-OAEP'");
- shouldBe("keyPair.publicKey.algorithm.modulusLength", "2048");
+ shouldBe("keyPair.publicKey.algorithm.modulusLength", "512");
shouldBe("bytesToHexString(keyPair.publicKey.algorithm.publicExponent)", "'010001'");
shouldBe("keyPair.publicKey.algorithm.hash.name", "'SHA-256'");
shouldBe("keyPair.privateKey.type", "'private'");
shouldBe("keyPair.privateKey.extractable", "false");
shouldBe("keyPair.privateKey.algorithm.name", "'RSA-OAEP'");
- shouldBe("keyPair.privateKey.algorithm.modulusLength", "2048");
+ shouldBe("keyPair.privateKey.algorithm.modulusLength", "512");
shouldBe("bytesToHexString(keyPair.privateKey.algorithm.publicExponent)", "'010001'");
shouldBe("keyPair.privateKey.algorithm.hash.name", "'SHA-256'");
}).then(finishJSTest, failAndFinishJSTest);
« no previous file with comments | « no previous file | LayoutTests/crypto/rsa-oaep-generate-non-extractable-key-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698