diff options
Diffstat (limited to 'src/pubkey/dl_group')
-rw-r--r-- | src/pubkey/dl_group/dl_group.cpp | 6 | ||||
-rw-r--r-- | src/pubkey/dl_group/dl_group.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pubkey/dl_group/dl_group.cpp b/src/pubkey/dl_group/dl_group.cpp index d714bc154..7f0160b6b 100644 --- a/src/pubkey/dl_group/dl_group.cpp +++ b/src/pubkey/dl_group/dl_group.cpp @@ -44,7 +44,7 @@ DL_Group::DL_Group(const std::string& type) * DL_Group Constructor */ DL_Group::DL_Group(RandomNumberGenerator& rng, - PrimeType type, u32bit pbits, u32bit qbits) + PrimeType type, size_t pbits, size_t qbits) { if(pbits < 512) throw Invalid_Argument("DL_Group: prime size " + to_string(pbits) + @@ -90,7 +90,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng, * DL_Group Constructor */ DL_Group::DL_Group(RandomNumberGenerator& rng, - const MemoryRegion<byte>& seed, u32bit pbits, u32bit qbits) + const MemoryRegion<byte>& seed, size_t pbits, size_t qbits) { if(!generate_dsa_primes(rng, global_state().algorithm_factory(), @@ -321,7 +321,7 @@ BigInt DL_Group::make_dsa_generator(const BigInt& p, const BigInt& q) BOTAN_ASSERT(e > 0, "q does not divide p, invalid group"); - for(u32bit i = 0; i != PRIME_TABLE_SIZE; ++i) + for(size_t i = 0; i != PRIME_TABLE_SIZE; ++i) { g = power_mod(PRIMES[i], e, p); if(g > 1) diff --git a/src/pubkey/dl_group/dl_group.h b/src/pubkey/dl_group/dl_group.h index 885ccd2f9..bfc2c04e5 100644 --- a/src/pubkey/dl_group/dl_group.h +++ b/src/pubkey/dl_group/dl_group.h @@ -122,7 +122,7 @@ class BOTAN_DLL DL_Group * the value determined according to pbits. */ DL_Group(RandomNumberGenerator& rng, PrimeType type, - u32bit pbits, u32bit qbits = 0); + size_t pbits, size_t qbits = 0); /** * Create a DSA group with a given seed. @@ -132,7 +132,7 @@ class BOTAN_DLL DL_Group * @param qbits the desired bit size of the prime q. */ DL_Group(RandomNumberGenerator& rng, const MemoryRegion<byte>& seed, - u32bit pbits = 1024, u32bit qbits = 0); + size_t pbits = 1024, size_t qbits = 0); /** * Create a DL group. The prime q will be determined according to p. |