use BinaryPolynomial when it is one in F2m

This commit is contained in:
Vincent Hanquez 2015-04-03 08:17:47 +01:00
parent 88ff52a10d
commit 827407fbed

View File

@ -34,7 +34,7 @@ addF2m = xor
{-# INLINE addF2m #-}
-- | Binary polynomial reduction modulo using long division algorithm.
modF2m :: Integer -- ^ Irreducible binary polynomial
modF2m :: BinaryPolynomial -- ^ Irreducible binary polynomial
-> Integer -> Integer
modF2m fx = go
where