Enable powModSecInteger with integer-gmp >= 1.0.2.0
This commit is contained in:
parent
d27d464627
commit
15f63fd849
@ -70,7 +70,9 @@ gmpLog2 _ = GmpUnsupported
|
|||||||
-- | Compute the power modulus using extra security to remain constant
|
-- | Compute the power modulus using extra security to remain constant
|
||||||
-- time wise through GMP
|
-- time wise through GMP
|
||||||
gmpPowModSecInteger :: Integer -> Integer -> Integer -> GmpSupported Integer
|
gmpPowModSecInteger :: Integer -> Integer -> Integer -> GmpSupported Integer
|
||||||
#if MIN_VERSION_integer_gmp(1,0,0)
|
#if MIN_VERSION_integer_gmp(1,0,2)
|
||||||
|
gmpPowModSecInteger b e m = GmpSupported (powModSecInteger b e m)
|
||||||
|
#elif MIN_VERSION_integer_gmp(1,0,0)
|
||||||
gmpPowModSecInteger _ _ _ = GmpUnsupported
|
gmpPowModSecInteger _ _ _ = GmpUnsupported
|
||||||
#elif MIN_VERSION_integer_gmp(0,5,1)
|
#elif MIN_VERSION_integer_gmp(0,5,1)
|
||||||
gmpPowModSecInteger b e m = GmpSupported (powModSecInteger b e m)
|
gmpPowModSecInteger b e m = GmpSupported (powModSecInteger b e m)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user