Try using the GDSA (which stands for generalized DSA) class instead. It
supports arbitrary key lengths and is compatible with DSA. The DSA
implementation hasn't been updated to reflect FIPS 186-3 yet.
--------------------------------------------------
From: "cft" <[email protected]>
Sent: Wednesday, August 11, 2010 4:45 AM
To: <[email protected]>
Subject: DSA key generation, 2048 bits
Hi Guys,
I'm getting an error message when generating a 2048 bit DSA key:
Terminate called after throwing an instance of 'CryptoPP::InvalidArgument'
what(): DSA: not a valid prime length
Reading the Wiki, I'm actually not quite sure whether Crypto++ supports
2048 bit DSA keys. As I understand they are allowed according to FIPS
186-3. I did undefine "DSA_1024_BIT_MODULUS_ONLY" but that (expectedly)
didn't help. According to DSA::MAX_PRIME_LENGTH the maximum key size
should be 1024 bits, which explains the error message.
Where should I tweak?
cft
--
You received this message because you are subscribed to the "Crypto++
Users" Google Group.
To unsubscribe, send an email to
[email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.