Expose two GMP primality operations
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 28 Oct 2013 19:13:35 +0000 (20:13 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Mon, 28 Oct 2013 20:19:05 +0000 (21:19 +0100)
commitd466dfc855542c5ebfff718e9decab3e469ba08a
treeb3c27b362a84e4856073c6f308e4277beda4040f
parent4d7cd68b3c6fd87e80d178f1433f3b67e16a6b98
Expose two GMP primality operations

This exposes `mpz_probab_prime_p()` and `mpz_nextprime()` as
`testPrimeInteger` and `nextPrimeInteger` respectively and is especially
useful for cryptographic algorithms such as RSA.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
GHC/Integer/GMP/Internals.hs
GHC/Integer/GMP/Prim.hs
GHC/Integer/Type.lhs
cbits/gmp-wrappers.cmm