9 NAMESPACE_BEGIN(CryptoPP)
19 #ifdef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY
24 const int MIN_DSA_PRIME_LENGTH = DSA::MIN_PRIME_LENGTH;
25 const int MAX_DSA_PRIME_LENGTH = DSA::MAX_PRIME_LENGTH;
26 const int DSA_PRIME_LENGTH_MULTIPLE = DSA::PRIME_LENGTH_MULTIPLE;
28 inline bool GenerateDSAPrimes(
const byte *seed,
size_t seedLength,
int &counter,
Integer &p,
unsigned int primeLength,
Integer &q)
29 {
return DSA::GeneratePrimes(seed, seedLength, counter, p, primeLength, q);}
size_t DSAConvertSignatureFormat(byte *buffer, size_t bufferSize, DSASignatureFormat toFormat, const byte *signature, size_t signatureLen, DSASignatureFormat fromFormat)
This function converts between these formats, and returns length of signature in the target format...
multiple precision integer and basic arithmetics
Implementation of schemes based on DL over GF(p)
A template implementing constructors for public key algorithm classes.