t8-mod/deps/libtommath
2024-02-15 15:46:47 -05:00
..
.github/workflows Initial commit 2024-02-15 15:46:47 -05:00
demo Initial commit 2024-02-15 15:46:47 -05:00
doc Initial commit 2024-02-15 15:46:47 -05:00
etc Initial commit 2024-02-15 15:46:47 -05:00
logs Initial commit 2024-02-15 15:46:47 -05:00
modulemap Initial commit 2024-02-15 15:46:47 -05:00
.gitattributes Initial commit 2024-02-15 15:46:47 -05:00
.gitignore Initial commit 2024-02-15 15:46:47 -05:00
appveyor.yml Initial commit 2024-02-15 15:46:47 -05:00
astylerc Initial commit 2024-02-15 15:46:47 -05:00
changes.txt Initial commit 2024-02-15 15:46:47 -05:00
CMakeLists.txt Initial commit 2024-02-15 15:46:47 -05:00
helper.pl Initial commit 2024-02-15 15:46:47 -05:00
libtommath_VS2008.sln Initial commit 2024-02-15 15:46:47 -05:00
libtommath_VS2008.vcproj Initial commit 2024-02-15 15:46:47 -05:00
libtommath.pc.in Initial commit 2024-02-15 15:46:47 -05:00
LICENSE Initial commit 2024-02-15 15:46:47 -05:00
makefile Initial commit 2024-02-15 15:46:47 -05:00
makefile_include.mk Initial commit 2024-02-15 15:46:47 -05:00
makefile.mingw Initial commit 2024-02-15 15:46:47 -05:00
makefile.msvc Initial commit 2024-02-15 15:46:47 -05:00
makefile.shared Initial commit 2024-02-15 15:46:47 -05:00
makefile.unix Initial commit 2024-02-15 15:46:47 -05:00
mp_2expt.c Initial commit 2024-02-15 15:46:47 -05:00
mp_abs.c Initial commit 2024-02-15 15:46:47 -05:00
mp_add_d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_add.c Initial commit 2024-02-15 15:46:47 -05:00
mp_addmod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_and.c Initial commit 2024-02-15 15:46:47 -05:00
mp_clamp.c Initial commit 2024-02-15 15:46:47 -05:00
mp_clear_multi.c Initial commit 2024-02-15 15:46:47 -05:00
mp_clear.c Initial commit 2024-02-15 15:46:47 -05:00
mp_cmp_d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_cmp_mag.c Initial commit 2024-02-15 15:46:47 -05:00
mp_cmp.c Initial commit 2024-02-15 15:46:47 -05:00
mp_cnt_lsb.c Initial commit 2024-02-15 15:46:47 -05:00
mp_complement.c Initial commit 2024-02-15 15:46:47 -05:00
mp_copy.c Initial commit 2024-02-15 15:46:47 -05:00
mp_count_bits.c Initial commit 2024-02-15 15:46:47 -05:00
mp_cutoffs.c Initial commit 2024-02-15 15:46:47 -05:00
mp_div_2.c Initial commit 2024-02-15 15:46:47 -05:00
mp_div_2d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_div_d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_div.c Initial commit 2024-02-15 15:46:47 -05:00
mp_dr_is_modulus.c Initial commit 2024-02-15 15:46:47 -05:00
mp_dr_reduce.c Initial commit 2024-02-15 15:46:47 -05:00
mp_dr_setup.c Initial commit 2024-02-15 15:46:47 -05:00
mp_error_to_string.c Initial commit 2024-02-15 15:46:47 -05:00
mp_exch.c Initial commit 2024-02-15 15:46:47 -05:00
mp_expt_n.c Initial commit 2024-02-15 15:46:47 -05:00
mp_exptmod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_exteuclid.c Initial commit 2024-02-15 15:46:47 -05:00
mp_fread.c Initial commit 2024-02-15 15:46:47 -05:00
mp_from_sbin.c Initial commit 2024-02-15 15:46:47 -05:00
mp_from_ubin.c Initial commit 2024-02-15 15:46:47 -05:00
mp_fwrite.c Initial commit 2024-02-15 15:46:47 -05:00
mp_gcd.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_double.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_i32.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_i64.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_l.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_mag_u32.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_mag_u64.c Initial commit 2024-02-15 15:46:47 -05:00
mp_get_mag_ul.c Initial commit 2024-02-15 15:46:47 -05:00
mp_grow.c Initial commit 2024-02-15 15:46:47 -05:00
mp_hash.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_copy.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_i32.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_i64.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_l.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_multi.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_set.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_size.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_u32.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_u64.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init_ul.c Initial commit 2024-02-15 15:46:47 -05:00
mp_init.c Initial commit 2024-02-15 15:46:47 -05:00
mp_invmod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_is_square.c Initial commit 2024-02-15 15:46:47 -05:00
mp_kronecker.c Initial commit 2024-02-15 15:46:47 -05:00
mp_lcm.c Initial commit 2024-02-15 15:46:47 -05:00
mp_log_n.c Initial commit 2024-02-15 15:46:47 -05:00
mp_lshd.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mod_2d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_montgomery_calc_normalization.c Initial commit 2024-02-15 15:46:47 -05:00
mp_montgomery_reduce.c Initial commit 2024-02-15 15:46:47 -05:00
mp_montgomery_setup.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mul_2.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mul_2d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mul_d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mul.c Initial commit 2024-02-15 15:46:47 -05:00
mp_mulmod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_neg.c Initial commit 2024-02-15 15:46:47 -05:00
mp_or.c Initial commit 2024-02-15 15:46:47 -05:00
mp_pack_count.c Initial commit 2024-02-15 15:46:47 -05:00
mp_pack.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_fermat.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_frobenius_underwood.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_is_prime.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_miller_rabin.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_next_prime.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_rabin_miller_trials.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_rand.c Initial commit 2024-02-15 15:46:47 -05:00
mp_prime_strong_lucas_selfridge.c Initial commit 2024-02-15 15:46:47 -05:00
mp_radix_size_overestimate.c Initial commit 2024-02-15 15:46:47 -05:00
mp_radix_size.c Initial commit 2024-02-15 15:46:47 -05:00
mp_rand_source.c Initial commit 2024-02-15 15:46:47 -05:00
mp_rand.c Initial commit 2024-02-15 15:46:47 -05:00
mp_read_radix.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_2k_l.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_2k_setup_l.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_2k_setup.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_2k.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_is_2k_l.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_is_2k.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce_setup.c Initial commit 2024-02-15 15:46:47 -05:00
mp_reduce.c Initial commit 2024-02-15 15:46:47 -05:00
mp_root_n.c Initial commit 2024-02-15 15:46:47 -05:00
mp_rshd.c Initial commit 2024-02-15 15:46:47 -05:00
mp_sbin_size.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_double.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_i32.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_i64.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_l.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_u32.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_u64.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set_ul.c Initial commit 2024-02-15 15:46:47 -05:00
mp_set.c Initial commit 2024-02-15 15:46:47 -05:00
mp_shrink.c Initial commit 2024-02-15 15:46:47 -05:00
mp_signed_rsh.c Initial commit 2024-02-15 15:46:47 -05:00
mp_sqrmod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_sqrt.c Initial commit 2024-02-15 15:46:47 -05:00
mp_sqrtmod_prime.c Initial commit 2024-02-15 15:46:47 -05:00
mp_sub_d.c Initial commit 2024-02-15 15:46:47 -05:00
mp_sub.c Initial commit 2024-02-15 15:46:47 -05:00
mp_submod.c Initial commit 2024-02-15 15:46:47 -05:00
mp_to_radix.c Initial commit 2024-02-15 15:46:47 -05:00
mp_to_sbin.c Initial commit 2024-02-15 15:46:47 -05:00
mp_to_ubin.c Initial commit 2024-02-15 15:46:47 -05:00
mp_ubin_size.c Initial commit 2024-02-15 15:46:47 -05:00
mp_unpack.c Initial commit 2024-02-15 15:46:47 -05:00
mp_xor.c Initial commit 2024-02-15 15:46:47 -05:00
mp_zero.c Initial commit 2024-02-15 15:46:47 -05:00
Package.swift Initial commit 2024-02-15 15:46:47 -05:00
README.md Initial commit 2024-02-15 15:46:47 -05:00
s_mp_add.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_copy_digs.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_div_3.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_div_recursive.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_div_school.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_div_small.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_exptmod_fast.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_exptmod.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_get_bit.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_invmod_odd.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_invmod.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_log_2expt.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_log_d.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_log.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_montgomery_reduce_comba.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul_balance.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul_comba.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul_high_comba.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul_high.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul_karatsuba.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul_toom.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_mul.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_prime_is_divisible.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_prime_tab.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_radix_map.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_radix_size_overestimate.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_rand_platform.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_sqr_comba.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_sqr_karatsuba.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_sqr_toom.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_sqr.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_sub.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_zero_buf.c Initial commit 2024-02-15 15:46:47 -05:00
s_mp_zero_digs.c Initial commit 2024-02-15 15:46:47 -05:00
sources.cmake Initial commit 2024-02-15 15:46:47 -05:00
testme.sh Initial commit 2024-02-15 15:46:47 -05:00
tommath_c89.h Initial commit 2024-02-15 15:46:47 -05:00
tommath_class.h Initial commit 2024-02-15 15:46:47 -05:00
tommath_cutoffs.h Initial commit 2024-02-15 15:46:47 -05:00
tommath_private.h Initial commit 2024-02-15 15:46:47 -05:00
tommath_superclass.h Initial commit 2024-02-15 15:46:47 -05:00
tommath.def Initial commit 2024-02-15 15:46:47 -05:00
tommath.h Initial commit 2024-02-15 15:46:47 -05: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.

CMake support

The project provides support for the CMake build system.

git clone https://github.com/libtom/libtommath.git
mkdir -p libtommath/build
cd libtommath/build
cmake ..
make -j$(nproc)

A shared library build can be done by setting -DBUILD_SHARED_LIBS=On when invoking the cmake command.