aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory/numthry.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-01 02:39:30 +0000
committerlloyd <[email protected]>2008-10-01 02:39:30 +0000
commitadd4bac81557ca3b36d395ced631c8b9a441ad16 (patch)
tree0bafd5d67cc966da356fe82fc0205d621847d4c4 /src/math/numbertheory/numthry.h
parent9939f633fd1776ed2b97f4ee61e2ed6da49a2fa3 (diff)
Move generate_dsa_primes decl from DL_Group to numthry.h to match source location
Diffstat (limited to 'src/math/numbertheory/numthry.h')
-rw-r--r--src/math/numbertheory/numthry.h14
1 files changed, 14 insertions, 0 deletions
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
@@ -72,6 +72,20 @@ BigInt BOTAN_DLL random_safe_prime(RandomNumberGenerator&,
u32bit);
/*************************************************
+* DSA Parameter Generation *
+*************************************************/
+SecureVector<byte> 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<byte>& seed);
+
+/*************************************************
* Prime Numbers *
*************************************************/
const u32bit PRIME_TABLE_SIZE = 6541;