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

Unified Diff: LayoutTests/crypto/rsa-oaep-key-manipulation.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
Index: LayoutTests/crypto/rsa-oaep-key-manipulation.html
diff --git a/LayoutTests/crypto/rsa-oaep-key-manipulation.html b/LayoutTests/crypto/rsa-oaep-key-manipulation.html
index dc616182dff133d2406616f1131eac074879edf8..5be0723043385ff3c79ee888af4441b2630d36cb 100644
--- a/LayoutTests/crypto/rsa-oaep-key-manipulation.html
+++ b/LayoutTests/crypto/rsa-oaep-key-manipulation.html
@@ -17,7 +17,7 @@ var algorithmKeyGen = {
name: "RSA-OAEP",
hash: {name: "sha-1"},
// RsaKeyGenParams
- modulusLength: 2048,
+ modulusLength: 512,
publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // Equivalent to 65537
};
var extractable = true;
@@ -28,13 +28,13 @@ crypto.subtle.generateKey(algorithmKeyGen, extractable, ["encrypt", "decrypt", "
shouldBe("keyPair.toString()", "'[object KeyPair]'");
shouldBe("keyPair.publicKey.type", "'public'");
shouldBe("keyPair.publicKey.algorithm.name", "'RSA-OAEP'");
- shouldBe("keyPair.publicKey.algorithm.modulusLength", "2048");
+ shouldBe("keyPair.publicKey.algorithm.modulusLength", "512");
shouldBe("keyPair.publicKey.usages", '["encrypt", "wrapKey"]');
shouldBe("bytesToHexString(keyPair.publicKey.algorithm.publicExponent)", "'010001'");
shouldBe("keyPair.publicKey.algorithm.hash.name", "'SHA-1'");
shouldBe("keyPair.privateKey.type", "'private'");
shouldBe("keyPair.privateKey.algorithm.name", "'RSA-OAEP'");
- shouldBe("keyPair.privateKey.algorithm.modulusLength", "2048");
+ shouldBe("keyPair.privateKey.algorithm.modulusLength", "512");
shouldBe("keyPair.privateKey.usages", '["decrypt", "unwrapKey"]');
shouldBe("bytesToHexString(keyPair.privateKey.algorithm.publicExponent)", "'010001'");
shouldBe("keyPair.privateKey.algorithm.hash.name", "'SHA-1'");
@@ -76,7 +76,7 @@ crypto.subtle.generateKey(algorithmKeyGen, extractable, ["encrypt", "decrypt", "
exportedPublicKey = result;
shouldBe("exportedPublicKey.type", "'public'");
shouldBe("exportedPublicKey.algorithm.name", "'RSA-OAEP'");
- shouldBe("exportedPublicKey.algorithm.modulusLength", "2048");
+ shouldBe("exportedPublicKey.algorithm.modulusLength", "512");
shouldBe("bytesToHexString(exportedPublicKey.algorithm.publicExponent)", "'010001'");
shouldBe("exportedPublicKey.algorithm.hash.name", "'SHA-1'");
shouldBe("exportedPublicKey.extractable", "true");

Powered by Google App Engine
This is Rietveld 408576698