Crypt::DH::GMP is a (somewhat) portable replacement to Crypt::DH, implemented mostly in C. Crypt::DH uses Math::BigInt, which is a very feature-full and fast interface to perform high-precision math. WWW: https://metacpan.org/release/Crypt-DH-GMP