Bignum libraries for windows?

2020-02-11 11:25发布

问题:

Are there any bignum libraries that are good for Windows use? I looked at GMP, but unfortunately it does not look like it can be compiled on Windows...(I'm going to be doing some custom RSA and hashing routines)

Thanks.

回答1:

People provide pre-compiled binaries for gmp on Windows; there are also instructions for compiling it yourself. Another option would be the bignum library of OpenSSL.



回答2:

Another option is MPIR. MPIR is a fork of GMP that specifically support compilation on Windows.



回答3:

http://www.openssl.org/ is stable and time proven library. It also includes well separable bignum libray



回答4:

Also have a look at MAPM, A Portable Arbitrary Precision Math Library in C. It also contains C++ wrappers.