dev-libs/
libtommath

Optimized and portable routines for integer theoretic applications

https://www.libtom.net/