summaryrefslogtreecommitdiff
path: root/nbtheory.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-19 03:47:20 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-19 03:47:20 +0000
commit153b79ef5d9b042b23eba9aa332ec025bbc3300e (patch)
tree09d13a6fae123a46962ad82f4b88b7c91bd08335 /nbtheory.h
parent609446928f2c6f2e51cc906a037cd79ef4dfd312 (diff)
downloadcryptopp-153b79ef5d9b042b23eba9aa332ec025bbc3300e.tar.gz
remove Diamond2, code size reductions
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@107 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'nbtheory.h')
-rw-r--r--nbtheory.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/nbtheory.h b/nbtheory.h
index 3ef517d..cb953f2 100644
--- a/nbtheory.h
+++ b/nbtheory.h
@@ -8,14 +8,8 @@
NAMESPACE_BEGIN(CryptoPP)
-// export a table of small primes
-extern const unsigned int maxPrimeTableSize;
-extern const word lastSmallPrime;
-extern unsigned int primeTableSize;
-extern word primeTable[];
-
-// build up the table to maxPrimeTableSize
-CRYPTOPP_DLL void BuildPrimeTable();
+// obtain pointer to small prime table and get its size
+CRYPTOPP_DLL const word * GetPrimeTable(unsigned int &size);
// ************ primality testing ****************