Go to file
2014-12-10 16:53:06 +01:00
demo mtest vs. test: add possibility to exit testing 2014-10-18 18:52:46 +02:00
etc minor changes & clean-up & small fixes 2014-09-28 13:12:10 +02:00
logs added libtommath-0.36 2010-07-15 17:25:56 +02:00
mtest mtest vs. test: add possibility to exit testing 2014-10-18 18:52:46 +02:00
pics added libtommath-0.30 2010-07-15 17:25:43 +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
.gitignore minor changes & clean-up & small fixes 2014-09-28 13:12:10 +02:00
bn_error.c mp_error_to_string: return const char* instead of char* 2011-06-19 15:49:34 +02:00
bn_fast_mp_invmod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_fast_mp_montgomery_reduce.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_fast_s_mp_mul_digs.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_fast_s_mp_mul_high_digs.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_fast_s_mp_sqr.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_2expt.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_abs.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_add_d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_add.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_addmod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_and.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_clamp.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_clear_multi.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_clear.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_cmp_d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_cmp_mag.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_cmp.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_cnt_lsb.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_copy.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_count_bits.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_div_2.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_div_2d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_div_3.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_div_d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_div.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_dr_is_modulus.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_dr_reduce.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_dr_setup.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_exch.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_export.c added mp_import / mp_export 2013-11-24 03:59:06 +01:00
bn_mp_expt_d_ex.c mp_expt_d: bring back pre 921be35779 state 2014-09-28 13:33:59 +02:00
bn_mp_expt_d.c mp_expt_d: bring back pre 921be35779 state 2014-09-28 13:33:59 +02:00
bn_mp_exptmod_fast.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_exptmod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_exteuclid.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_fread.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_fwrite.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_gcd.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_get_int.c fix x32 compilation 2014-09-23 22:54:30 +02:00
bn_mp_get_long.c fix compiler warning when compiling with "-mx32" option 2014-12-10 16:53:06 +01:00
bn_mp_grow.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_import.c added mp_import / mp_export 2013-11-24 03:59:06 +01:00
bn_mp_init_copy.c Update bn_mp_init_copy.c 2013-11-24 15:28:50 +01:00
bn_mp_init_multi.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_init_set_int.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_init_set.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_init_size.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_init.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_invmod_slow.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_invmod.c Avoid consecutive return statements 2014-01-25 16:28:42 +01:00
bn_mp_is_square.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_jacobi.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_karatsuba_mul.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_karatsuba_sqr.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_lcm.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_lshd.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_mod_2d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_mod_d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_mod.c Fix mp_mod(a, b, c) if b < 0 and a = n * b, n integer 2012-01-08 20:49:01 +01:00
bn_mp_montgomery_calc_normalization.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_montgomery_reduce.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_montgomery_setup.c fix x32 compilation 2014-09-23 22:54:30 +02:00
bn_mp_mul_2.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_mul_2d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_mul_d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_mul.c Revert "balancing multiplication like that in Ruby 1.9" 2014-10-18 18:54:06 +02:00
bn_mp_mulmod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_n_root_ex.c mp_n_root: add mp_n_root_ex() with parameter 'fast' for mp_expt_d_ex() 2014-09-28 13:33:59 +02:00
bn_mp_n_root.c mp_n_root: add mp_n_root_ex() with parameter 'fast' for mp_expt_d_ex() 2014-09-28 13:33:59 +02:00
bn_mp_neg.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_or.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_prime_fermat.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_prime_is_divisible.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_prime_is_prime.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_prime_miller_rabin.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_prime_next_prime.c Initialize variable "res" to MP_NO. 2014-01-25 16:27:20 +01:00
bn_mp_prime_rabin_miller_trials.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_prime_random_ex.c removed flag LTM_PRIME_2MSB_OFF since it's no more available 2011-03-23 23:24:37 +01:00
bn_mp_radix_size.c fix bug in mp_radix_size() 2012-11-19 14:34:25 +01:00
bn_mp_radix_smap.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_rand.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_read_radix.c fixed comment 2012-11-19 14:56:34 +01:00
bn_mp_read_signed_bin.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_read_unsigned_bin.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_2k_l.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_2k_setup_l.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_2k_setup.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_2k.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_is_2k_l.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_is_2k.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce_setup.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_reduce.c fix x32 compilation 2014-09-23 22:54:30 +02:00
bn_mp_rshd.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_set_int.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_set_long.c fix macros 2014-12-10 16:53:06 +01:00
bn_mp_set.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_shrink.c + allow mp_shrink to shrink initialized, but empty MPI's 2010-07-15 17:49:19 +02:00
bn_mp_signed_bin_size.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_sqr.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_sqrmod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_sqrt.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_sub_d.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_sub.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_submod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_to_signed_bin_n.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_to_signed_bin.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_to_unsigned_bin_n.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_to_unsigned_bin.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_toom_mul.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_toom_sqr.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_toradix_n.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_toradix.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_unsigned_bin_size.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_xor.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_mp_zero.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_prime_tab.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_reverse.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_s_mp_add.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_s_mp_exptmod.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_s_mp_mul_digs.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_s_mp_mul_high_digs.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_s_mp_sqr.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn_s_mp_sub.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
bn.tex (wrong version bump in bn.tex, fixed) 2010-07-23 22:13:12 +09:00
bncore.c added libtommath-0.41 2010-07-15 17:26:06 +02:00
booker.pl minor changes & clean-up & small fixes 2014-09-28 13:12:10 +02:00
callgraph.txt update after removing balance multiplication 2014-10-18 18:56:56 +02:00
changes.txt updated changes.txt 2010-07-23 21:47:31 +09:00
dep.pl dep.pl: add new type mp_min_u32 2014-09-28 13:33:35 +02:00
filter.pl add "updatemakes" from libtomcrypt 2014-10-13 15:49:02 +02:00
gen.pl trim trailing spaces 2014-10-14 14:38:41 +02:00
genlist.sh add "updatemakes" from libtomcrypt 2014-10-13 15:49:02 +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
LICENSE after multiple objections of libtom users [1], we decided to change licensing 2011-01-19 10:21:45 +01:00
makefile add new make target 'test_standalone' 2014-10-18 20:20:30 +02:00
makefile.bcc update after removing balance multiplication 2014-10-18 18:56:56 +02:00
makefile.cygwin_dll update after removing balance multiplication 2014-10-18 18:56:56 +02:00
makefile.icc update after removing balance multiplication 2014-10-18 18:56:56 +02:00
makefile.msvc update after removing balance multiplication 2014-10-18 18:56:56 +02:00
makefile.shared update after removing balance multiplication 2014-10-18 18:56:56 +02:00
mess.sh added libtommath-0.36 2010-07-15 17:25:56 +02:00
parsenames.pl add "updatemakes" from libtomcrypt 2014-10-13 15:49:02 +02:00
poster.tex added libtommath-0.28 2010-07-15 17:25:39 +02:00
pretty.build added libtommath-0.31 2010-07-15 17:25:45 +02:00
README.md update README 2014-10-18 20:20:07 +02:00
tommath_class.h update after removing balance multiplication 2014-10-18 18:56:56 +02:00
tommath_superclass.h added libtommath-0.36 2010-07-15 17:25:56 +02:00
tommath.h Add set_long and get_long functions 2014-12-10 16:53:06 +01:00
tommath.pdf added libtommath-0.41 2010-07-15 17:26:06 +02:00
tommath.src trim trailing spaces/clean up 2014-09-02 02:14:38 +02:00
updatemakes.sh add "updatemakes" from libtomcrypt 2014-10-13 15:49:02 +02:00

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.