Index: LayoutTests/crypto/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html |
diff --git a/LayoutTests/crypto/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html b/LayoutTests/crypto/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html |
index e34dc4c9ff134d6f416d76bc869a7632ee4b2229..9cbb547dde3982f860b5468706894b4d4824911d 100644 |
--- a/LayoutTests/crypto/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html |
+++ b/LayoutTests/crypto/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html |
@@ -17,7 +17,7 @@ var algorithmKeyGen = { |
name: "RSASSA-PKCS1-v1_5", |
hash: {name: "sha-256"}, |
// RsaKeyGenParams |
- modulusLength: 2048, |
+ modulusLength: 512, |
publicExponent: new Uint8Array([0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01]), // Equivalent to 65537 |
}; |
var extractable = true; |
@@ -28,14 +28,14 @@ crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then |
shouldBe("keyPair.toString()", "'[object KeyPair]'"); |
shouldBe("keyPair.publicKey.type", "'public'"); |
shouldBe("keyPair.publicKey.algorithm.name", "'RSASSA-PKCS1-v1_5'"); |
- shouldBe("keyPair.publicKey.algorithm.modulusLength", "2048"); |
+ shouldBe("keyPair.publicKey.algorithm.modulusLength", "512"); |
shouldBe("bytesToHexString(keyPair.publicKey.algorithm.publicExponent)", "'010001'"); |
shouldBe("bytesToHexString(keyPair.privateKey.algorithm.publicExponent)", "'010001'"); |
shouldBe("keyPair.publicKey.usages", '["verify"]'); |
shouldBe("keyPair.privateKey.type", "'private'"); |
shouldBe("keyPair.privateKey.algorithm.name", "'RSASSA-PKCS1-v1_5'"); |
- shouldBe("keyPair.privateKey.algorithm.modulusLength", "2048"); |
+ shouldBe("keyPair.privateKey.algorithm.modulusLength", "512"); |
shouldBe("keyPair.privateKey.usages", '["sign"]'); |
}).then(finishJSTest, failAndFinishJSTest); |
</script> |