1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-12-28 17:08:08 +00:00
simplesshd/dropbear/libtommath
2019-06-09 16:44:26 -04:00
..
demo stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
etc stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
logs stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
mtest stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
pics stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
pre_gen stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
tombc stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
bn_error.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_fast_mp_invmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_fast_mp_montgomery_reduce.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_fast_s_mp_mul_digs.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_fast_s_mp_mul_high_digs.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_fast_s_mp_sqr.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_2expt.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_abs.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_add_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_add.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_addmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_and.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_clamp.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_clear_multi.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_clear.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_cmp_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_cmp_mag.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_cmp.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_cnt_lsb.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_copy.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_count_bits.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_div_2.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_div_2d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_div_3.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_div_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_div.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_dr_is_modulus.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_dr_reduce.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_dr_setup.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_exch.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_export.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_expt_d_ex.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_expt_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_exptmod_fast.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_exptmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_exteuclid.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_fread.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_fwrite.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_gcd.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_get_int.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_get_long_long.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_get_long.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_grow.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_import.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_init_copy.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_init_multi.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_init_set_int.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_init_set.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_init_size.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_init.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_invmod_slow.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_invmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_is_square.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_jacobi.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_karatsuba_mul.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_karatsuba_sqr.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_lcm.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_lshd.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mod_2d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mod_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_montgomery_calc_normalization.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_montgomery_reduce.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_montgomery_setup.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mul_2.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mul_2d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mul_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mul.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_mulmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_n_root_ex.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_n_root.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_neg.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_or.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_fermat.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_is_divisible.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_is_prime.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_miller_rabin.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_next_prime.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_rabin_miller_trials.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_prime_random_ex.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_radix_size.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_radix_smap.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_rand.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_read_radix.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_read_signed_bin.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_read_unsigned_bin.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_2k_l.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_2k_setup_l.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_2k_setup.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_2k.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_is_2k_l.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_is_2k.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce_setup.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_reduce.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_rshd.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_set_int.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_set_long_long.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_set_long.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_set.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_shrink.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_signed_bin_size.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_sqr.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_sqrmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_sqrt.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_sqrtmod_prime.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_sub_d.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_sub.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_submod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_to_signed_bin_n.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_to_signed_bin.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_to_unsigned_bin_n.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_to_unsigned_bin.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_toom_mul.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_toom_sqr.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_toradix_n.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_toradix.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_unsigned_bin_size.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_xor.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_mp_zero.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_prime_tab.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_reverse.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_s_mp_add.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_s_mp_exptmod.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_s_mp_mul_digs.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_s_mp_mul_high_digs.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_s_mp_sqr.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn_s_mp_sub.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bn.tex stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
bncore.c stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
booker.pl stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
callgraph.txt stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
changes.txt stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
dep.pl stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
filter.pl stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
gen.pl stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
genlist.sh stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
LICENSE stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
makefile_include.mk stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
makefile.bcc stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
makefile.cygwin_dll stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
makefile.icc stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
Makefile.in stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
makefile.msvc stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
makefile.shared stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
mess.sh stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
parsenames.pl stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
poster.out stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
poster.tex stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
pretty.build stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
README.md stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
testme.sh stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
tommath_class.h stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
tommath_private.h stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
tommath_superclass.h stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
tommath.h stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04:00
tommath.out stock dropbear-2014.66 source tree 2014-12-10 16:56:49 -05:00
updatemakes.sh stock dropbear-2019.78 source tree 2019-06-09 16:44:26 -04: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.