diff options
Diffstat (limited to 'include')
-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; |