add function pointers to tommath_class.h

This commit is contained in:
Steffen Jaeckel 2019-09-06 10:22:45 +02:00
parent 8721ca1239
commit 702e5391d0
2 changed files with 8 additions and 1 deletions

View File

@ -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]/;

View File

@ -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)