Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.

Merge pull request #4 from moritz/negative-mod

Fix mp_mod(a, b, c) if b < 0 and a = n * b, n integer
latest commit 1bd1320b19
Steffen Jaeckel sjaeckel authored May 11, 2012
Octocat-spinner-32 demo fixed compilation error of demo/demo.c because of missing macro LTM_P… March 23, 2011
Octocat-spinner-32 etc added libtommath-0.40 July 15, 2010
Octocat-spinner-32 logs added libtommath-0.36 July 15, 2010
Octocat-spinner-32 mtest - changed $ID$ SVN keyword to the correct one $Id$ July 23, 2010
Octocat-spinner-32 pics added libtommath-0.30 July 15, 2010
Octocat-spinner-32 pre_gen added typecast in mp_read_radix() December 19, 2010
Octocat-spinner-32 tombc added libtommath-0.35 July 15, 2010
Octocat-spinner-32 .gitignore added "VisualStudio section" in .gitignore July 23, 2010
Octocat-spinner-32 LICENSE after multiple objections of libtom users [1], we decided to change l… January 19, 2011
Octocat-spinner-32 bn.tex (wrong version bump in bn.tex, fixed) July 23, 2010
Octocat-spinner-32 bn_error.c mp_error_to_string: return const char* instead of char* June 19, 2011
Octocat-spinner-32 bn_fast_mp_invmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_fast_mp_montgomery_reduce.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_fast_s_mp_mul_digs.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_fast_s_mp_mul_high_digs.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_fast_s_mp_sqr.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_2expt.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_abs.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_add.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_add_d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_addmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_and.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_clamp.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_clear.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_clear_multi.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_cmp.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_cmp_d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_cmp_mag.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_cnt_lsb.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_copy.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_count_bits.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_div.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_div_2.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_div_2d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_div_3.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_div_d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_dr_is_modulus.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_dr_reduce.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_dr_setup.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_exch.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_expt_d.c Squared result was stored in the wrong variable March 23, 2011
Octocat-spinner-32 bn_mp_exptmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_exptmod_fast.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_exteuclid.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_fread.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_fwrite.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_gcd.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_get_int.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_grow.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_init.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_init_copy.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_init_multi.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_init_set.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_init_set_int.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_init_size.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_invmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_invmod_slow.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_is_square.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_jacobi.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_karatsuba_mul.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_karatsuba_sqr.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_lcm.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_lshd.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mod.c Fix mp_mod(a, b, c) if b < 0 and a = n * b, n integer January 08, 2012
Octocat-spinner-32 bn_mp_mod_2d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mod_d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_montgomery_calc_normalization.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_montgomery_reduce.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_montgomery_setup.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mul.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mul_2.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mul_2d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mul_d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_mulmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_n_root.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_neg.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_or.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_prime_fermat.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_prime_is_divisible.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_prime_is_prime.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_prime_miller_rabin.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_prime_next_prime.c Fix for mp_prime_next_prime() bug when checking generated prime July 15, 2010
Octocat-spinner-32 bn_mp_prime_rabin_miller_trials.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_prime_random_ex.c removed flag LTM_PRIME_2MSB_OFF since it's no more available March 23, 2011
Octocat-spinner-32 bn_mp_radix_size.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_radix_smap.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_rand.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_read_radix.c added typecast in mp_read_radix() December 19, 2010
Octocat-spinner-32 bn_mp_read_signed_bin.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_read_unsigned_bin.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_2k.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_2k_l.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_2k_setup.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_2k_setup_l.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_is_2k.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_is_2k_l.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_reduce_setup.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_rshd.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_set.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_set_int.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_shrink.c + allow mp_shrink to shrink initialized, but empty MPI's July 15, 2010
Octocat-spinner-32 bn_mp_signed_bin_size.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_sqr.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_sqrmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_sqrt.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_sub.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_sub_d.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_submod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_to_signed_bin.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_to_signed_bin_n.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_to_unsigned_bin.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_to_unsigned_bin_n.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_toom_mul.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_toom_sqr.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_toradix.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_toradix_n.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_unsigned_bin_size.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_xor.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_mp_zero.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_prime_tab.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_reverse.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_s_mp_add.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_s_mp_exptmod.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_s_mp_mul_digs.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_s_mp_mul_high_digs.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_s_mp_sqr.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bn_s_mp_sub.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 bncore.c added libtommath-0.41 July 15, 2010
Octocat-spinner-32 booker.pl added libtommath-0.40 July 15, 2010
Octocat-spinner-32 callgraph.txt added libtommath-0.35 July 15, 2010
Octocat-spinner-32 changes.txt updated changes.txt July 23, 2010
Octocat-spinner-32 dep.pl added libtommath-0.34 July 15, 2010
Octocat-spinner-32 gen.pl added libtommath-0.21 July 15, 2010
Octocat-spinner-32 libtommath.dsp added libtommath-0.41 July 15, 2010
Octocat-spinner-32 libtommath_VS2005.sln Added project and solution files for Visual Studio 2005 and Visual St… July 15, 2010
Octocat-spinner-32 libtommath_VS2005.vcproj Added project and solution files for Visual Studio 2005 and Visual St… July 15, 2010
Octocat-spinner-32 libtommath_VS2008.sln Added project and solution files for Visual Studio 2005 and Visual St… July 15, 2010
Octocat-spinner-32 libtommath_VS2008.vcproj Added project and solution files for Visual Studio 2005 and Visual St… July 15, 2010
Octocat-spinner-32 makefile Cleaning up files generated by "make manual" and "make poster" (added… July 23, 2010
Octocat-spinner-32 makefile.bcc added libtommath-0.37 July 15, 2010
Octocat-spinner-32 makefile.cygwin_dll added libtommath-0.36 July 15, 2010
Octocat-spinner-32 makefile.icc added libtommath-0.36 July 15, 2010
Octocat-spinner-32 makefile.msvc added libtommath-0.36 July 15, 2010
Octocat-spinner-32 makefile.shared added libtommath-0.41 July 15, 2010
Octocat-spinner-32 mess.sh added libtommath-0.36 July 15, 2010
Octocat-spinner-32 poster.tex added libtommath-0.28 July 15, 2010
Octocat-spinner-32 pretty.build added libtommath-0.31 July 15, 2010
Octocat-spinner-32 tommath.h fix mp_error_to_string in tommath.h January 09, 2012
Octocat-spinner-32 tommath.out added libtommath-0.29 July 15, 2010
Octocat-spinner-32 tommath.pdf added libtommath-0.41 July 15, 2010
Octocat-spinner-32 tommath.src added libtommath-0.39 July 15, 2010
Octocat-spinner-32 tommath.tex added libtommath-0.41 July 15, 2010
Octocat-spinner-32 tommath_class.h added libtommath-0.36 July 15, 2010
Octocat-spinner-32 tommath_superclass.h added libtommath-0.36 July 15, 2010
Something went wrong with that request. Please try again.