Skip to content

Commit

Permalink
Weak encryption: Insufficient key size (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgomes0000 authored Feb 22, 2025
1 parent dded6a2 commit 3a5892c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UnitTests/Cryptography/AsymmetricAlgorithmExtensionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ static void AssertDSA (DSA dsa)
[Test]
public void TestDSACryptoServiceProvider ()
{
using (var dsa = new DSACryptoServiceProvider (1024))
using (var dsa = new DSACryptoServiceProvider (2048))
AssertDSA (dsa);
}

[Test]
public void TestDSACng ()
{
#if !MONO && ENABLE_DSA_CNG
using (var dsa = new DSACng (1024))
using (var dsa = new DSACng (2048))
AssertDSA (dsa);
#else
Assert.Ignore ("Mono does not implement DSACng");
Expand Down Expand Up @@ -189,15 +189,15 @@ static void AssertRSA (RSA rsa)
[Test]
public void TestRSACryptoServiceProvider ()
{
using (var rsa = new RSACryptoServiceProvider (1024))
using (var rsa = new RSACryptoServiceProvider (2048))
AssertRSA (rsa);
}

[Test]
public void TestRSACng ()
{
#if !MONO && ENABLE_RSA_CNG
using (var rsa = new RSACng (1024))
using (var rsa = new RSACng (2048))
AssertRSA (rsa);
#else
Assert.Ignore ("Mono does not implement RSACng");
Expand Down

0 comments on commit 3a5892c

Please sign in to comment.