You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simplesshd/dropbear/libtommath
Greg Alexander 9d7c6ffbfb
stock dropbear-2019.78 source tree
5 years ago
..
demo stock dropbear-2019.78 source tree 5 years ago
etc stock dropbear-2019.78 source tree 5 years ago
logs stock dropbear-2014.66 source tree 10 years ago
mtest stock dropbear-2019.78 source tree 5 years ago
pics stock dropbear-2014.66 source tree 10 years ago
pre_gen stock dropbear-2019.78 source tree 5 years ago
tombc stock dropbear-2014.66 source tree 10 years ago
LICENSE stock dropbear-2019.78 source tree 5 years ago
Makefile.in stock dropbear-2019.78 source tree 5 years ago
README.md stock dropbear-2019.78 source tree 5 years ago
bn.tex stock dropbear-2019.78 source tree 5 years ago
bn_error.c stock dropbear-2019.78 source tree 5 years ago
bn_fast_mp_invmod.c stock dropbear-2019.78 source tree 5 years ago
bn_fast_mp_montgomery_reduce.c stock dropbear-2019.78 source tree 5 years ago
bn_fast_s_mp_mul_digs.c stock dropbear-2019.78 source tree 5 years ago
bn_fast_s_mp_mul_high_digs.c stock dropbear-2019.78 source tree 5 years ago
bn_fast_s_mp_sqr.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_2expt.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_abs.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_add.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_add_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_addmod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_and.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_clamp.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_clear.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_clear_multi.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_cmp.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_cmp_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_cmp_mag.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_cnt_lsb.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_copy.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_count_bits.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_div.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_div_2.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_div_2d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_div_3.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_div_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_dr_is_modulus.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_dr_reduce.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_dr_setup.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_exch.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_export.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_expt_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_expt_d_ex.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_exptmod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_exptmod_fast.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_exteuclid.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_fread.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_fwrite.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_gcd.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_get_int.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_get_long.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_get_long_long.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_grow.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_import.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_init.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_init_copy.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_init_multi.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_init_set.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_init_set_int.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_init_size.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_invmod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_invmod_slow.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_is_square.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_jacobi.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_karatsuba_mul.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_karatsuba_sqr.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_lcm.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_lshd.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mod_2d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mod_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_montgomery_calc_normalization.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_montgomery_reduce.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_montgomery_setup.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mul.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mul_2.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mul_2d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mul_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_mulmod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_n_root.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_n_root_ex.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_neg.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_or.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_fermat.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_is_divisible.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_is_prime.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_miller_rabin.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_next_prime.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_rabin_miller_trials.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_prime_random_ex.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_radix_size.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_radix_smap.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_rand.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_read_radix.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_read_signed_bin.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_read_unsigned_bin.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_2k.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_2k_l.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_2k_setup.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_2k_setup_l.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_is_2k.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_is_2k_l.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_reduce_setup.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_rshd.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_set.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_set_int.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_set_long.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_set_long_long.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_shrink.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_signed_bin_size.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_sqr.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_sqrmod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_sqrt.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_sqrtmod_prime.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_sub.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_sub_d.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_submod.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_to_signed_bin.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_to_signed_bin_n.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_to_unsigned_bin.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_to_unsigned_bin_n.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_toom_mul.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_toom_sqr.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_toradix.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_toradix_n.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_unsigned_bin_size.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_xor.c stock dropbear-2019.78 source tree 5 years ago
bn_mp_zero.c stock dropbear-2019.78 source tree 5 years ago
bn_prime_tab.c stock dropbear-2019.78 source tree 5 years ago
bn_reverse.c stock dropbear-2019.78 source tree 5 years ago
bn_s_mp_add.c stock dropbear-2019.78 source tree 5 years ago
bn_s_mp_exptmod.c stock dropbear-2019.78 source tree 5 years ago
bn_s_mp_mul_digs.c stock dropbear-2019.78 source tree 5 years ago
bn_s_mp_mul_high_digs.c stock dropbear-2019.78 source tree 5 years ago
bn_s_mp_sqr.c stock dropbear-2019.78 source tree 5 years ago
bn_s_mp_sub.c stock dropbear-2019.78 source tree 5 years ago
bncore.c stock dropbear-2019.78 source tree 5 years ago
booker.pl stock dropbear-2019.78 source tree 5 years ago
callgraph.txt stock dropbear-2019.78 source tree 5 years ago
changes.txt stock dropbear-2019.78 source tree 5 years ago
dep.pl stock dropbear-2019.78 source tree 5 years ago
filter.pl stock dropbear-2019.78 source tree 5 years ago
gen.pl stock dropbear-2019.78 source tree 5 years ago
genlist.sh stock dropbear-2019.78 source tree 5 years ago
makefile.bcc stock dropbear-2019.78 source tree 5 years ago
makefile.cygwin_dll stock dropbear-2019.78 source tree 5 years ago
makefile.icc stock dropbear-2019.78 source tree 5 years ago
makefile.msvc stock dropbear-2019.78 source tree 5 years ago
makefile.shared stock dropbear-2019.78 source tree 5 years ago
makefile_include.mk stock dropbear-2019.78 source tree 5 years ago
mess.sh stock dropbear-2014.66 source tree 10 years ago
parsenames.pl stock dropbear-2019.78 source tree 5 years ago
poster.out stock dropbear-2014.66 source tree 10 years ago
poster.tex stock dropbear-2014.66 source tree 10 years ago
pretty.build stock dropbear-2014.66 source tree 10 years ago
testme.sh stock dropbear-2019.78 source tree 5 years ago
tommath.h stock dropbear-2019.78 source tree 5 years ago
tommath.out stock dropbear-2014.66 source tree 10 years ago
tommath_class.h stock dropbear-2019.78 source tree 5 years ago
tommath_private.h stock dropbear-2019.78 source tree 5 years ago
tommath_superclass.h stock dropbear-2019.78 source tree 5 years ago
updatemakes.sh stock dropbear-2019.78 source tree 5 years ago

README.md

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.