Skip to content

Commit

Permalink
provide tommath_private.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sjaeckel committed Nov 12, 2015
1 parent 5a15247 commit 4e3f134
Show file tree
Hide file tree
Showing 130 changed files with 218 additions and 185 deletions.
2 changes: 1 addition & 1 deletion bn_error.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_ERROR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_fast_mp_invmod.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_FAST_MP_INVMOD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_fast_mp_montgomery_reduce.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_FAST_MP_MONTGOMERY_REDUCE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_fast_s_mp_mul_digs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_FAST_S_MP_MUL_DIGS_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_fast_s_mp_mul_high_digs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_FAST_S_MP_MUL_HIGH_DIGS_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_fast_s_mp_sqr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_FAST_S_MP_SQR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_2expt.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_2EXPT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_abs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_ABS_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_add.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_ADD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_add_d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_ADD_D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_addmod.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_ADDMOD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_and.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_AND_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_clamp.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CLAMP_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_clear.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CLEAR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_clear_multi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CLEAR_MULTI_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_cmp.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CMP_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_cmp_d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CMP_D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_cmp_mag.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CMP_MAG_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_cnt_lsb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_CNT_LSB_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_copy.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_COPY_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_count_bits.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_COUNT_BITS_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_div.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DIV_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_div_2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DIV_2_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_div_2d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DIV_2D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_div_3.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DIV_3_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_div_d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DIV_D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_dr_is_modulus.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DR_IS_MODULUS_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_dr_reduce.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DR_REDUCE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_dr_setup.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_DR_SETUP_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_exch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXCH_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_export.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXPORT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_expt_d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXPT_D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_expt_d_ex.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXPT_D_EX_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_exptmod.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXPTMOD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_exptmod_fast.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXPTMOD_FAST_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_exteuclid.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_EXTEUCLID_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_fread.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_FREAD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_fwrite.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_FWRITE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_gcd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_GCD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_get_int.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_GET_INT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_get_long.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_GET_LONG_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_get_long_long.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_GET_LONG_LONG_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_grow.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_GROW_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_import.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_IMPORT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_init.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INIT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_init_copy.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INIT_COPY_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_init_multi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INIT_MULTI_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_init_set.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INIT_SET_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_init_set_int.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INIT_SET_INT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_init_size.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INIT_SIZE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_invmod.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INVMOD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_invmod_slow.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_INVMOD_SLOW_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_is_square.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_IS_SQUARE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_jacobi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_JACOBI_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_karatsuba_mul.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_KARATSUBA_MUL_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_karatsuba_sqr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_KARATSUBA_SQR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_lcm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_LCM_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_lshd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_LSHD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_mod.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MOD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_mod_2d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MOD_2D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_mod_d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MOD_D_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_montgomery_calc_normalization.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_montgomery_reduce.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MONTGOMERY_REDUCE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_montgomery_setup.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MONTGOMERY_SETUP_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_mul.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MUL_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
2 changes: 1 addition & 1 deletion bn_mp_mul_2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <tommath.h>
#include <tommath_private.h>
#ifdef BN_MP_MUL_2_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
Expand Down
Loading

0 comments on commit 4e3f134

Please sign in to comment.