Commit 6a9deb79da54885778fb77a11ff537fa6c8daa7e

Steffen Jaeckel 2018-12-26T15:44:26

fix & run dep.pl

diff --git a/bn_mp_exptmod_fast.c b/bn_mp_exptmod_fast.c
old mode 100755
new mode 100644
diff --git a/dep.pl b/dep.pl
index 4df5180..4ba7ef5 100644
--- a/dep.pl
+++ b/dep.pl
@@ -10,6 +10,18 @@ my %deplist;
 #open class file and write preamble
 open(my $class, '>', 'tommath_class.h') or die "Couldn't open tommath_class.h for writing\n";
 print {$class} << 'EOS';
+/* LibTomMath, multiple-precision integer library -- Tom St Denis
+ *
+ * LibTomMath is a library that provides multiple-precision
+ * integer arithmetic as well as number theoretic functionality.
+ *
+ * The library was designed directly after the MPI library by
+ * Michael Fromberger but has been written from scratch with
+ * additional optimizations in place.
+ *
+ * SPDX-License-Identifier: Unlicense
+ */
+
 #if !(defined(LTM1) && defined(LTM2) && defined(LTM3))
 #if defined(LTM2)
 #   define LTM3
@@ -125,6 +137,10 @@ print {$class} << 'EOS';
 #else
 #   define LTM_LAST
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
 EOS
 close $class;
 
diff --git a/tommath_class.h b/tommath_class.h
index 7dfd838..ff398e5 100644
--- a/tommath_class.h
+++ b/tommath_class.h
@@ -785,7 +785,7 @@
 #if defined(BN_MP_PRIME_STRONG_LUCAS_SELFRIDGE_C)
 #   define BN_MP_PRIME_IS_PRIME_C
 #   define BN_MP_MUL_D_C
-#   define BN_MP_MUL_SI_C
+#   define BN_S_MP_MUL_SI_C
 #   define BN_MP_INIT_C
 #   define BN_MP_SET_LONG_C
 #   define BN_MP_MUL_C