Skip to content

Commit 4e3f134

Browse files
committed
provide tommath_private.h
tommath.h contains declarations for the public part of the library. tommath_private.h contains the functions which are private to ltm and should not be exposed to the public.
1 parent 5a15247 commit 4e3f134

File tree

130 files changed

+218
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+218
-185
lines changed

bn_error.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_ERROR_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_fast_mp_invmod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_FAST_MP_INVMOD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_fast_mp_montgomery_reduce.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_FAST_MP_MONTGOMERY_REDUCE_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_fast_s_mp_mul_digs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_FAST_S_MP_MUL_DIGS_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_fast_s_mp_mul_high_digs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_FAST_S_MP_MUL_HIGH_DIGS_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_fast_s_mp_sqr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_FAST_S_MP_SQR_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_2expt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_2EXPT_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_abs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_ABS_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_add.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_ADD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_add_d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_ADD_D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_addmod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_ADDMOD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_and.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_AND_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_clamp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CLAMP_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_clear.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CLEAR_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_clear_multi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CLEAR_MULTI_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_cmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CMP_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_cmp_d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CMP_D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_cmp_mag.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CMP_MAG_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_cnt_lsb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_CNT_LSB_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_copy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_COPY_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_count_bits.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_COUNT_BITS_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_div.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DIV_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_div_2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DIV_2_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_div_2d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DIV_2D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_div_3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DIV_3_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_div_d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DIV_D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_dr_is_modulus.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DR_IS_MODULUS_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_dr_reduce.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DR_REDUCE_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_dr_setup.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_DR_SETUP_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_exch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXCH_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_export.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXPORT_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_expt_d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXPT_D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_expt_d_ex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXPT_D_EX_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_exptmod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXPTMOD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_exptmod_fast.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXPTMOD_FAST_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_exteuclid.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_EXTEUCLID_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_fread.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_FREAD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_fwrite.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_FWRITE_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_gcd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_GCD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_get_int.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_GET_INT_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_get_long.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_GET_LONG_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_get_long_long.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_GET_LONG_LONG_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_grow.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_GROW_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_import.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_IMPORT_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_init.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INIT_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_init_copy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INIT_COPY_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_init_multi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INIT_MULTI_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_init_set.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INIT_SET_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_init_set_int.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INIT_SET_INT_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_init_size.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INIT_SIZE_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_invmod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INVMOD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_invmod_slow.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_INVMOD_SLOW_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_is_square.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_IS_SQUARE_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_jacobi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_JACOBI_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_karatsuba_mul.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_KARATSUBA_MUL_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_karatsuba_sqr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_KARATSUBA_SQR_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_lcm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_LCM_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_lshd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_LSHD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_mod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MOD_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_mod_2d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MOD_2D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_mod_d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MOD_D_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_montgomery_calc_normalization.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_montgomery_reduce.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MONTGOMERY_REDUCE_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_montgomery_setup.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MONTGOMERY_SETUP_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_mul.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MUL_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

bn_mp_mul_2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <tommath.h>
1+
#include <tommath_private.h>
22
#ifdef BN_MP_MUL_2_C
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis
44
*

0 commit comments

Comments
 (0)