aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/curve_nistp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math/numbertheory/curve_nistp.h')
-rw-r--r--src/lib/math/numbertheory/curve_nistp.h29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/lib/math/numbertheory/curve_nistp.h b/src/lib/math/numbertheory/curve_nistp.h
index 19d1bd256..2425eb9e8 100644
--- a/src/lib/math/numbertheory/curve_nistp.h
+++ b/src/lib/math/numbertheory/curve_nistp.h
@@ -10,8 +10,6 @@
#include <botan/bigint.h>
-BOTAN_FUTURE_INTERNAL_HEADER(curve_nistp.h)
-
namespace Botan {
/**
@@ -22,27 +20,20 @@ namespace Botan {
* ws is a workspace function which is used as a temporary,
* and will be resized as needed.
*/
-BOTAN_PUBLIC_API(2,0) const BigInt& prime_p521();
-BOTAN_PUBLIC_API(2,0) void redc_p521(BigInt& x, secure_vector<word>& ws);
-
-/*
-Previously this macro indicated if the P-{192,224,256,384} reducers
-were available. Now they are always enabled and this macro has no meaning.
-The define will be removed in a future major release.
-*/
-#define BOTAN_HAS_NIST_PRIME_REDUCERS_W32
+BOTAN_TEST_API const BigInt& prime_p521();
+BOTAN_TEST_API void redc_p521(BigInt& x, secure_vector<word>& ws);
-BOTAN_PUBLIC_API(2,0) const BigInt& prime_p384();
-BOTAN_PUBLIC_API(2,0) void redc_p384(BigInt& x, secure_vector<word>& ws);
+BOTAN_TEST_API const BigInt& prime_p384();
+BOTAN_TEST_API void redc_p384(BigInt& x, secure_vector<word>& ws);
-BOTAN_PUBLIC_API(2,0) const BigInt& prime_p256();
-BOTAN_PUBLIC_API(2,0) void redc_p256(BigInt& x, secure_vector<word>& ws);
+BOTAN_TEST_API const BigInt& prime_p256();
+BOTAN_TEST_API void redc_p256(BigInt& x, secure_vector<word>& ws);
-BOTAN_PUBLIC_API(2,0) const BigInt& prime_p224();
-BOTAN_PUBLIC_API(2,0) void redc_p224(BigInt& x, secure_vector<word>& ws);
+BOTAN_TEST_API const BigInt& prime_p224();
+BOTAN_TEST_API void redc_p224(BigInt& x, secure_vector<word>& ws);
-BOTAN_PUBLIC_API(2,0) const BigInt& prime_p192();
-BOTAN_PUBLIC_API(2,0) void redc_p192(BigInt& x, secure_vector<word>& ws);
+BOTAN_TEST_API const BigInt& prime_p192();
+BOTAN_TEST_API void redc_p192(BigInt& x, secure_vector<word>& ws);
}