diff options
author | lloyd <[email protected]> | 2008-09-18 14:01:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-18 14:01:19 +0000 |
commit | c4db0960750aa6f347fb9a85ab6f8d3eb29b2146 (patch) | |
tree | 6408b16646c62b504e7d45f6fcc55351070c54f9 /include/dl_group.h | |
parent | 71b3fe8ee01d1910d2c4e6e1ff6bdacf08957729 (diff) |
Make DSA param generation interfaces in DL_Group public
Diffstat (limited to 'include/dl_group.h')
-rw-r--r-- | include/dl_group.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/dl_group.h b/include/dl_group.h index 37871f38d..5d4f46e2d 100644 --- a/include/dl_group.h +++ b/include/dl_group.h @@ -17,6 +17,16 @@ namespace Botan { class BOTAN_DLL DL_Group { public: + static SecureVector<byte> + generate_dsa_primes(RandomNumberGenerator& rng, + BigInt& p, BigInt& q, + u32bit pbits, u32bit qbits); + + static bool generate_dsa_primes(RandomNumberGenerator& rng, + BigInt& p_out, BigInt& q_out, + u32bit p_bits, u32bit q_bits, + const MemoryRegion<byte>& seed); + const BigInt& get_p() const; const BigInt& get_q() const; const BigInt& get_g() const; @@ -53,15 +63,6 @@ class BOTAN_DLL DL_Group private: static BigInt make_dsa_generator(const BigInt&, const BigInt&); - static SecureVector<byte> - generate_dsa_primes(RandomNumberGenerator& rng, - BigInt& p, BigInt& q, - u32bit pbits, u32bit qbits); - - static bool generate_dsa_primes(RandomNumberGenerator&, - BigInt&, BigInt&, u32bit, u32bit, - const MemoryRegion<byte>&); - void init_check() const; void initialize(const BigInt&, const BigInt&, const BigInt&); bool initialized; |