From add4bac81557ca3b36d395ced631c8b9a441ad16 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 1 Oct 2008 02:39:30 +0000 Subject: Move generate_dsa_primes decl from DL_Group to numthry.h to match source location --- src/math/numbertheory/numthry.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/math/numbertheory/numthry.h') diff --git a/src/math/numbertheory/numthry.h b/src/math/numbertheory/numthry.h index a271a428a..19726646a 100644 --- a/src/math/numbertheory/numthry.h +++ b/src/math/numbertheory/numthry.h @@ -71,6 +71,20 @@ BigInt BOTAN_DLL random_prime(RandomNumberGenerator&, BigInt BOTAN_DLL random_safe_prime(RandomNumberGenerator&, u32bit); +/************************************************* +* DSA Parameter Generation * +*************************************************/ +SecureVector BOTAN_DLL +generate_dsa_primes(RandomNumberGenerator& rng, + BigInt& p, BigInt& q, + u32bit pbits, u32bit qbits); + +bool BOTAN_DLL +generate_dsa_primes(RandomNumberGenerator& rng, + BigInt& p_out, BigInt& q_out, + u32bit p_bits, u32bit q_bits, + const MemoryRegion& seed); + /************************************************* * Prime Numbers * *************************************************/ -- cgit v1.2.3