diff libtommath/tommath_class.h @ 1470:8bba51a55704

Update to libtommath v1.0.1
author Matt Johnston <matt@ucc.asn.au>
date Thu, 08 Feb 2018 23:11:40 +0800
parents 60fc6476e044
children 5916af64acd4
line wrap: on
line diff
--- a/libtommath/tommath_class.h	Thu Feb 08 22:21:47 2018 +0800
+++ b/libtommath/tommath_class.h	Thu Feb 08 23:11:40 2018 +0800
@@ -282,12 +282,9 @@
 #if defined(BN_MP_DIV_2D_C)
    #define BN_MP_COPY_C
    #define BN_MP_ZERO_C
-   #define BN_MP_INIT_C
    #define BN_MP_MOD_2D_C
-   #define BN_MP_CLEAR_C
    #define BN_MP_RSHD_C
    #define BN_MP_CLAMP_C
-   #define BN_MP_EXCH_C
 #endif
 
 #if defined(BN_MP_DIV_3_C)
@@ -359,7 +356,7 @@
 
 #if defined(BN_MP_EXPTMOD_FAST_C)
    #define BN_MP_COUNT_BITS_C
-   #define BN_MP_INIT_C
+   #define BN_MP_INIT_SIZE_C
    #define BN_MP_CLEAR_C
    #define BN_MP_MONTGOMERY_SETUP_C
    #define BN_FAST_MP_MONTGOMERY_REDUCE_C
@@ -441,6 +438,7 @@
 #if defined(BN_MP_INIT_COPY_C)
    #define BN_MP_INIT_SIZE_C
    #define BN_MP_COPY_C
+   #define BN_MP_CLEAR_C
 #endif
 
 #if defined(BN_MP_INIT_MULTI_C)
@@ -466,6 +464,7 @@
 #if defined(BN_MP_INVMOD_C)
    #define BN_MP_ISZERO_C
    #define BN_MP_ISODD_C
+   #define BN_MP_CMP_D_C
    #define BN_FAST_MP_INVMOD_C
    #define BN_MP_INVMOD_SLOW_C
 #endif
@@ -500,6 +499,7 @@
 #endif
 
 #if defined(BN_MP_JACOBI_C)
+   #define BN_MP_ISNEG_C
    #define BN_MP_CMP_D_C
    #define BN_MP_ISZERO_C
    #define BN_MP_INIT_COPY_C
@@ -546,7 +546,7 @@
 #endif
 
 #if defined(BN_MP_MOD_C)
-   #define BN_MP_INIT_C
+   #define BN_MP_INIT_SIZE_C
    #define BN_MP_DIV_C
    #define BN_MP_CLEAR_C
    #define BN_MP_ISZERO_C
@@ -610,7 +610,7 @@
 #endif
 
 #if defined(BN_MP_MULMOD_C)
-   #define BN_MP_INIT_C
+   #define BN_MP_INIT_SIZE_C
    #define BN_MP_MUL_C
    #define BN_MP_CLEAR_C
    #define BN_MP_MOD_C