add function pointers to tommath_class.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
diff --git a/helper.pl b/helper.pl
index bde8cdf..e60c1a7 100755
--- a/helper.pl
+++ b/helper.pl
@@ -381,7 +381,7 @@ EOS
# scan for mp_* and make classes
my @deps = ();
foreach my $line (split /\n/, $content) {
- while ($line =~ /(fast_)?(s_)?mp\_[a-z_0-9]*(?=\()|(?<=\()mp\_[a-z_0-9]*(?=,)/g) {
+ while ($line =~ /(fast_)?(s_)?mp\_[a-z_0-9]*((?=\;)|(?=\())|(?<=\()mp\_[a-z_0-9]*(?=\()/g) {
my $a = $&;
next if $a eq "mp_err";
$a =~ tr/[a-z]/[A-Z]/;
diff --git a/tommath_class.h b/tommath_class.h
index 24122d1..32d1b2d 100644
--- a/tommath_class.h
+++ b/tommath_class.h
@@ -827,6 +827,7 @@
# define BN_MP_GROW_C
# define BN_MP_RAND_SOURCE_C
# define BN_MP_ZERO_C
+# define BN_S_MP_RAND_PLATFORM_C
# define BN_S_MP_RAND_SOURCE_C
#endif
@@ -1118,7 +1119,9 @@
# define BN_MP_INIT_C
# define BN_MP_MOD_C
# define BN_MP_MUL_C
+# define BN_MP_REDUCE_2K_L_C
# define BN_MP_REDUCE_2K_SETUP_L_C
+# define BN_MP_REDUCE_C
# define BN_MP_REDUCE_SETUP_C
# define BN_MP_SET_C
# define BN_MP_SQR_C
@@ -1128,17 +1131,21 @@
# define BN_MP_CLEAR_C
# define BN_MP_COPY_C
# define BN_MP_COUNT_BITS_C
+# define BN_MP_DR_REDUCE_C
# define BN_MP_DR_SETUP_C
# define BN_MP_EXCH_C
# define BN_MP_INIT_SIZE_C
# define BN_MP_MOD_C
# define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
+# define BN_MP_MONTGOMERY_REDUCE_C
# define BN_MP_MONTGOMERY_SETUP_C
# define BN_MP_MULMOD_C
# define BN_MP_MUL_C
+# define BN_MP_REDUCE_2K_C
# define BN_MP_REDUCE_2K_SETUP_C
# define BN_MP_SET_C
# define BN_MP_SQR_C
+# define BN_S_MP_MONTGOMERY_REDUCE_FAST_C
#endif
#if defined(BN_S_MP_GET_BIT_C)