0

Bump test RSA key sizes to a more realistic size

512-bit RSA was factored back in 1999, before Chrome even existed. We're
looking to set minimum RSA key sizes in BoringSSL, preferably a limit
that doesn't allow something that was already insecure in 1999!

Bug: boringssl:607
Change-Id: I84f11f38e588b0cc627380bacb06b3e8a53057fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529975
Commit-Queue: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Auto-Submit: David Benjamin <davidben@chromium.org>
Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143840}
This commit is contained in:
David Benjamin
2023-05-15 01:51:20 +00:00
committed by Chromium LUCI CQ
parent 374f523d8e
commit 94fc9cf4b2
2 changed files with 2 additions and 2 deletions
chrome/browser/ash/extensions/users_private
crypto

@ -125,7 +125,7 @@ class UsersPrivateApiTest : public ExtensionApiTest {
scoped_refptr<ownership::MockOwnerKeyUtil> owner_key_util =
new ownership::MockOwnerKeyUtil();
owner_key_util->ImportPrivateKeyAndSetPublicKey(
crypto::RSAPrivateKey::Create(512));
crypto::RSAPrivateKey::Create(2048));
ash::OwnerSettingsServiceAshFactory::GetInstance()
->SetOwnerKeyUtilForTesting(owner_key_util);

@ -353,7 +353,7 @@ TEST(RSAPrivateKeyUnitTest, ShortIntegers) {
TEST(RSAPrivateKeyUnitTest, CreateFromKeyTest) {
std::unique_ptr<crypto::RSAPrivateKey> key_pair(
crypto::RSAPrivateKey::Create(512));
crypto::RSAPrivateKey::Create(2048));
ASSERT_TRUE(key_pair.get());
std::unique_ptr<crypto::RSAPrivateKey> key_copy(