bcgit / bc-csharp

BouncyCastle.NET Cryptography Library (Mirror)
https://www.bouncycastle.org/csharp
MIT License
1.68k stars 558 forks source link

DsaParametersGenerator can't initialize size greater than 1024... #549

Closed lalakii closed 3 months ago

lalakii commented 4 months ago
var dsa = new DsaParametersGenerator();
dsa.Init(2048, 80, ...);

When I run this code, I get an exception.

System.ArgumentException: size must be from 512 - 1024 and a multiple of 64

java prompts me:

Warning:
<aa> uses a 1024-bit DSA key which is considered a security risk. This key size will be disabled in a future update.

Will this be fixed in a subsequent release?

Thank you.