Crypto++
8.3
Free C++ class library of cryptographic schemes
|
DSA signature scheme. More...
Static Public Member Functions | |
static std::string CRYPTOPP_API | StaticAlgorithmName () |
DSA signature scheme.
H | HashTransformation derived class The class is named DSA2 instead of DSA for backwards compatibility because DSA was a non-template class. DSA default method GenerateRandom uses a 2048-bit modulus and a 224-bit subgoup by default. The modulus can be changed using the following code: DSA::PrivateKey privateKey; privateKey.GenerateRandomWithKeySize(prng, 2048);The subgroup order can be changed using the following code: AlgorithmParameters params = MakeParameters (Name::ModulusSize(), 2048) (Name::SubgroupOrderSize(), 256); |
DSA::PrivateKey privateKey; privateKey.GenerateRandom(prng, params);
DSA, as specified in FIPS 186-3, Digital Signature Algorithm on the wiki, and NameValuePairs on the wiki.
Crypto++ 1.0 for DSA, Crypto++ 5.6.2 for DSA2, Crypto++ 6.1 for 2048-bit modulus.
Definition at line 788 of file gfpcrypt.h.