LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.