dropbear/libtommath
2024-07-24 03:31:27 +03:00
..
astylerc Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_cutoffs.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_deprecated.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_2expt.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_mp_abs.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_add_d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_add.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_addmod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_and.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_clamp.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_clear_multi.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_clear.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_cmp_d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_cmp_mag.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_cmp.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_cnt_lsb.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_complement.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_copy.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_count_bits.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_decr.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_div_2.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_div_2d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_div_3.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_div_d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_div.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_dr_is_modulus.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_dr_reduce.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_dr_setup.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_error_to_string.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_exch.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_expt_u32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_exptmod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_exteuclid.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_fread.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_from_sbin.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_from_ubin.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_fwrite.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_gcd.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_i32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_i64.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_l.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_ll.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_mag_u32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_mag_u64.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_mag_ul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_get_mag_ull.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_grow.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_mp_incr.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_copy.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_i32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_i64.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_l.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_ll.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_multi.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_set.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_size.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_mp_init_u32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_u64.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_ul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init_ull.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_init.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_invmod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_is_square.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_iseven.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_isodd.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_kronecker.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_lcm.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_log_u32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_lshd.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mod_2d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mod_d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_montgomery_calc_normalization.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_montgomery_reduce.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_montgomery_setup.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mul_2.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mul_2d.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_mp_mul_d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_mulmod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_neg.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_or.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_pack_count.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_pack.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_fermat.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_frobenius_underwood.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_is_prime.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_miller_rabin.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_next_prime.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_rabin_miller_trials.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_rand.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_prime_strong_lucas_selfridge.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_radix_size.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_radix_smap.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_rand.c Use Dropbear's random source rather than libtommath's platform 2020-10-19 22:49:19 +08:00
bn_mp_read_radix.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_2k_l.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_2k_setup_l.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_2k_setup.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_2k.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_is_2k_l.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_is_2k.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce_setup.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_reduce.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_root_u32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_rshd.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sbin_size.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_i32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_i64.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_l.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_ll.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_u32.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_u64.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_ul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set_ull.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_set.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_shrink.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_signed_rsh.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sqr.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sqrmod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sqrt.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sqrtmod_prime.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sub_d.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_sub.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_submod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_to_radix.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_to_sbin.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_to_ubin.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_ubin_size.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_unpack.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_xor.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_mp_zero.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_prime_tab.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_add.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_balance_mul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_exptmod_fast.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_exptmod.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_get_bit.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_invmod_fast.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_invmod_slow.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_karatsuba_mul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_karatsuba_sqr.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_montgomery_reduce_fast.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_mul_digs_fast.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_s_mp_mul_digs.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_s_mp_mul_high_digs_fast.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_s_mp_mul_high_digs.c sync github July 2024 2024-07-24 03:31:27 +03:00
bn_s_mp_prime_is_divisible.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_rand_jenkins.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_rand_platform.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_reverse.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_sqr_fast.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_sqr.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_sub.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_toom_mul.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
bn_s_mp_toom_sqr.c Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
changes.txt Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
gen.pl Update to libtommath v1.0.1 2018-02-08 23:11:40 +08:00
helper.pl Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
LICENSE update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79) 2019-09-16 21:50:38 +08:00
makefile_include.mk Add flags so libtommath builds with -O3 2022-10-25 21:12:08 +08:00
Makefile.in sync github July 2024 2024-07-24 03:31:27 +03:00
README.md Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
testme.sh Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
tommath_class.h Use Dropbear's random source rather than libtommath's platform 2020-10-19 22:49:19 +08:00
tommath_cutoffs.h Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
tommath_private.h Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
tommath_superclass.h Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00
tommath.h Update LibTomMath to 1.2.0 (#84) 2020-05-26 23:36:47 +08:00

libtommath

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

Build Status

Travis CI

master: Build Status

develop: Build Status

AppVeyor

master: Build status

develop: Build status

ABI Laboratory

API/ABI changes: check here

Summary

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.

Testing

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

  • make test creates a stand-alone test binary that executes several test routines.
  • make mtest_opponent 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 | ./mtest_opponent. mtest is creating test vectors using an alternative MPI library and test is consuming these vectors to verify correct behavior of ltm

Building and Installing

Building is straightforward for GNU Linux only, the section "Building LibTomMath" in the documentation in doc/bn.pdf has the details.