| 1 | # libtommath |
| 2 | |
| 3 | This is the git repository for [LibTomMath](http://www.libtom.net/LibTomMath/), a free open source portable number theoretic multiple-precision integer (MPI) library written entirely in C. |
| 4 | |
| 5 | ## Build Status |
| 6 | |
| 7 | ### Travis CI |
| 8 | |
| 9 | master: [](https://travis-ci.org/libtom/libtommath) |
| 10 | |
| 11 | develop: [](https://travis-ci.org/libtom/libtommath) |
| 12 | |
| 13 | ### AppVeyor |
| 14 | |
| 15 | master: [](https://ci.appveyor.com/project/libtom/libtommath/branch/master) |
| 16 | |
| 17 | develop: [](https://ci.appveyor.com/project/libtom/libtommath/branch/develop) |
| 18 | |
| 19 | ### ABI Laboratory |
| 20 | |
| 21 | API/ABI changes: [check here](https://abi-laboratory.pro/tracker/timeline/libtommath/) |
| 22 | |
| 23 | ## Summary |
| 24 | |
| 25 | The `develop` branch contains the in-development version. Stable releases are tagged. |
| 26 | |
| 27 | Documentation is built from the LaTeX file `bn.tex`. There is also limited documentation in `tommath.h`. |
| 28 | There is also a document, `tommath.pdf`, which describes the goals of the project and many of the algorithms used. |
| 29 | |
| 30 | The project can be build by using `make`. Along with the usual `make`, `make clean` and `make install`, |
| 31 | there are several other build targets, see the makefile for details. |
| 32 | There are also makefiles for certain specific platforms. |
| 33 | |
| 34 | ## Testing |
| 35 | |
| 36 | Tests are located in `demo/` and can be built in two flavors. |
| 37 | * `make test` creates a stand-alone test binary that executes several test routines. |
| 38 | * `make mtest_opponent` creates a test binary that is intended to be run against `mtest`. |
| 39 | `mtest` can be built with `make mtest` and test execution is done like `./mtest/mtest | ./mtest_opponent`. |
| 40 | `mtest` is creating test vectors using an alternative MPI library and `test` is consuming these vectors to verify correct behavior of ltm |
| 41 | |
| 42 | ## Building and Installing |
| 43 | |
| 44 | Building is straightforward for GNU Linux only, the section "Building LibTomMath" in the documentation in `doc/bn.pdf` has the details. |