Go to file
2017-08-28 17:00:58 +02:00
demo replace SVN tags 2017-08-28 17:00:58 +02:00
doc add primality figure to doc 2017-08-26 11:12:03 +02:00
etc replace SVN tags 2017-08-28 17:00:58 +02:00
logs added libtommath-0.36 2010-07-15 17:25:56 +02:00
mtest let's have the same amount of invmod tests than the other tests 2017-04-20 13:03:21 +02:00
pre_gen trim trailing spaces 2014-10-14 14:38:41 +02:00
tombc added libtommath-0.35 2010-07-15 17:25:53 +02:00
.gitattributes replace SVN tags 2017-08-28 17:00:58 +02:00
.gitignore add pkg-config file for shared library 2017-05-09 14:25:11 +02:00
.travis.yml update travis notifications 2017-06-06 23:31:30 +02:00
bn_error.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_fast_mp_invmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_fast_mp_montgomery_reduce.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_fast_s_mp_mul_digs.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_fast_s_mp_mul_high_digs.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_fast_s_mp_sqr.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_2expt.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_abs.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_add_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_add.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_addmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_and.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_clamp.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_clear_multi.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_clear.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_cmp_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_cmp_mag.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_cmp.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_cnt_lsb.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_copy.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_count_bits.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_div_2.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_div_2d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_div_3.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_div_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_div.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_dr_is_modulus.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_dr_reduce.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_dr_setup.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_exch.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_export.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_expt_d_ex.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_expt_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_exptmod_fast.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_exptmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_exteuclid.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_fread.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_fwrite.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_gcd.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_get_int.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_get_long_long.c add parentheses for explicit operator precedence 2015-12-02 22:47:51 +01:00
bn_mp_get_long.c add parentheses for explicit operator precedence 2015-12-02 22:47:51 +01:00
bn_mp_grow.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_import.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_init_copy.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_init_multi.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_init_set_int.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_init_set.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_init_size.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_init.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_invmod_slow.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_invmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_is_square.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_jacobi.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_karatsuba_mul.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_karatsuba_sqr.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_lcm.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_lshd.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mod_2d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mod_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_montgomery_calc_normalization.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_montgomery_reduce.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_montgomery_setup.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mul_2.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mul_2d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mul_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mul.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_mulmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_n_root_ex.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_n_root.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_neg.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_or.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_fermat.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_is_divisible.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_is_prime.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_miller_rabin.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_next_prime.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_rabin_miller_trials.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_prime_random_ex.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_radix_size.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_radix_smap.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_rand.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_read_radix.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_read_signed_bin.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_read_unsigned_bin.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_2k_l.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_2k_setup_l.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_2k_setup.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_2k.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_is_2k_l.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_is_2k.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce_setup.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_reduce.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_rshd.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_set_int.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_set_long_long.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_set_long.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_set.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_shrink.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_signed_bin_size.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_sqr.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_sqrmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_sqrt.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_sqrtmod_prime.c handle the return value of function 2015-12-02 22:47:51 +01:00
bn_mp_sub_d.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_sub.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_submod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_to_signed_bin_n.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_to_signed_bin.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_to_unsigned_bin_n.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_to_unsigned_bin.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_toom_mul.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_toom_sqr.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_toradix_n.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_toradix.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_unsigned_bin_size.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_xor.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_mp_zero.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_prime_tab.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_reverse.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_s_mp_add.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_s_mp_exptmod.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_s_mp_mul_digs.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_s_mp_mul_high_digs.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_s_mp_sqr.c replace SVN tags 2017-08-28 17:00:58 +02:00
bn_s_mp_sub.c replace SVN tags 2017-08-28 17:00:58 +02:00
bncore.c replace SVN tags 2017-08-28 17:00:58 +02:00
callgraph.txt update callgraph 2017-04-09 01:04:07 +02:00
changes.txt update changelog 2017-08-28 16:08:39 +02:00
dep.pl sanitize some Perl scripts 2017-04-09 01:04:07 +02:00
filter.pl replace SVN tags 2017-08-28 17:00:58 +02:00
gen.pl sanitize some Perl scripts 2017-04-09 01:04:07 +02:00
genlist.sh replace SVN tags 2017-08-28 17:00:58 +02:00
libtommath_VS2005.sln Added project and solution files for Visual Studio 2005 and Visual Studio 2008. 2010-07-15 17:48:59 +02:00
libtommath_VS2005.vcproj update makefiles 2013-11-24 15:21:39 +01:00
libtommath_VS2008.sln Added project and solution files for Visual Studio 2005 and Visual Studio 2008. 2010-07-15 17:48:59 +02:00
libtommath_VS2008.vcproj update makefiles 2013-11-24 15:21:39 +01:00
libtommath.dsp added libtommath-0.41 2010-07-15 17:26:06 +02:00
libtommath.pc.in add pkg-config file for shared library 2017-05-09 14:25:11 +02:00
LICENSE after multiple objections of libtom users [1], we decided to change licensing 2011-01-19 10:21:45 +01:00
makefile add uninstall make-target 2017-08-28 15:56:30 +02:00
makefile_include.mk correct usage of DESTDIR, PREFIX, etc. for the install make-target 2017-08-28 15:56:12 +02:00
makefile.bcc update makefiles etc. 2015-10-30 18:04:33 -04:00
makefile.cygwin_dll update makefiles etc. 2015-10-30 18:04:33 -04:00
makefile.icc update makefiles etc. 2015-10-30 18:04:33 -04:00
makefile.msvc update makefiles etc. 2015-10-30 18:04:33 -04:00
makefile.shared add uninstall make-target 2017-08-28 15:56:30 +02:00
mess.sh added libtommath-0.36 2010-07-15 17:25:56 +02:00
parsenames.pl replace SVN tags 2017-08-28 17:00:58 +02:00
pretty.build added libtommath-0.31 2010-07-15 17:25:45 +02:00
README.md show master build state on main pagein readme 2016-04-24 13:49:58 +02:00
testme.sh improve testme.sh 2017-04-11 11:43:45 +02:00
tommath_class.h update tommath_class.h 2017-04-09 01:04:07 +02:00
tommath_private.h replace SVN tags 2017-08-28 17:00:58 +02:00
tommath_superclass.h replace SVN tags 2017-08-28 17:00:58 +02:00
tommath.h replace SVN tags 2017-08-28 17:00:58 +02:00
updatemakes.sh replace SVN tags 2017-08-28 17:00:58 +02:00

Build Status - master

Build Status - develop

This is the git repository for LibTomMath, a free open source portable number theoretic multiple-precision integer (MPI) library written entirely in C.

The develop branch contains the in-development version. Stable releases are tagged.

Documentation is built from the LaTeX file bn.tex. There is also limited documentation in tommath.h. There is also a document, tommath.pdf, which describes the goals of the project and many of the algorithms used.

The project can be build by using make. Along with the usual make, make clean and make install, there are several other build targets, see the makefile for details. There are also makefiles for certain specific platforms.

Tests are located in demo/ and can be built in two flavors.

  • make test creates a test binary that is intended to be run against mtest. mtest can be built with make mtest and test execution is done like ./mtest/mtest | ./test. mtest is creating test vectors using an alternative MPI library and test is consuming these vectors to verify correct behavior of ltm
  • make test_standalone creates a stand-alone test binary that executes several test routines.