Crypto++
8.4
Free C++ class library of cryptographic schemes
|
DSA signature scheme. More...
Static Public Member Functions | |
static std::string | 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);
Definition at line 753 of file gfpcrypt.h.