aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory/numthry.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-25 21:08:53 +0000
committerlloyd <[email protected]>2010-02-25 21:08:53 +0000
commit8c0880d3e84d5273d3861967dc2bdb9d1b2bb18f (patch)
tree75cd2cd8efb9b474b677599a28d2795822ff922a /src/math/numbertheory/numthry.h
parent2713464d38711fba803399992627525bd980f5e6 (diff)
Hide MillerRabin_Test class (only used in numthry.cpp)
Inline simple functions in Modular_Reducer Add Modular_Reducer::cube convenience function
Diffstat (limited to 'src/math/numbertheory/numthry.h')
-rw-r--r--src/math/numbertheory/numthry.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/math/numbertheory/numthry.h b/src/math/numbertheory/numthry.h
index ae2c219fc..080f184a4 100644
--- a/src/math/numbertheory/numthry.h
+++ b/src/math/numbertheory/numthry.h
@@ -9,7 +9,6 @@
#define BOTAN_NUMBER_THEORY_H__
#include <botan/bigint.h>
-#include <botan/reducer.h>
#include <botan/pow_mod.h>
#include <botan/rng.h>
@@ -100,21 +99,6 @@ const u32bit PRIME_PRODUCTS_TABLE_SIZE = 256;
extern const u16bit BOTAN_DLL PRIMES[];
extern const u64bit PRIME_PRODUCTS[];
-/*
-* Miller-Rabin Primality Tester
-*/
-class BOTAN_DLL MillerRabin_Test
- {
- public:
- bool passes_test(const BigInt&);
- MillerRabin_Test(const BigInt&);
- private:
- BigInt n, r, n_minus_1;
- u32bit s;
- Fixed_Exponent_Power_Mod pow_mod;
- Modular_Reducer reducer;
- };
-
}
#endif