Add side-channel attack resilient `powModSecInteger`
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 27 Oct 2013 22:14:11 +0000 (23:14 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sun, 27 Oct 2013 22:14:11 +0000 (23:14 +0100)
commitd5afac8d8c8b3ff5842124de843fcceba0556dd0
treee3efcf690e33a0658fc489dfdf3ea191d21d46ec
parent944c19027cc482f4198d547b9ba2fe1000b93df6
Add side-channel attack resilient `powModSecInteger`

This is a follow-up to 97c101b7363f84d925a600acb56a9fa3a997ea0d which
introduced the "ordinary" `powModInteger` operation.

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