Added missing imports and removed duplicate imports. Tests pass.
This commit is contained in:
parent
c71a6733dd
commit
109600cec2
@ -29,14 +29,11 @@ module Crypto.PubKey.DSA
|
||||
) where
|
||||
|
||||
import Crypto.Random.Types
|
||||
import qualified Data.Bits as Bits (shiftL, (.|.), shiftR)
|
||||
import Data.Data
|
||||
import Data.Maybe
|
||||
import Crypto.Number.Basic (numBits)
|
||||
import Crypto.Number.ModArithmetic (expFast, expSafe, inverse)
|
||||
import Crypto.Number.Serialize
|
||||
import Crypto.Number.Generate
|
||||
import Crypto.Internal.ByteArray (ByteArrayAccess, ByteArray, ScrubbedBytes, convert, index, dropView, takeView, pack, unpack)
|
||||
import Crypto.Internal.ByteArray (ByteArrayAccess)
|
||||
import Crypto.Internal.Imports
|
||||
import Crypto.Hash
|
||||
import Crypto.PubKey.Internal (dsaTruncHash)
|
||||
|
||||
@ -16,19 +16,15 @@ module Crypto.PubKey.ECC.ECDSA
|
||||
) where
|
||||
|
||||
import Control.Monad
|
||||
import Crypto.Random.Types
|
||||
import Data.Bits (shiftR)
|
||||
import Crypto.Hash
|
||||
import Crypto.Internal.ByteArray (ByteArrayAccess)
|
||||
import Data.Data
|
||||
import Crypto.Number.Basic (numBits)
|
||||
import Crypto.Number.ModArithmetic (inverse)
|
||||
import Crypto.Number.Serialize
|
||||
import Crypto.Number.Generate
|
||||
import Crypto.PubKey.ECC.Types
|
||||
import Crypto.PubKey.ECC.Prim
|
||||
import Crypto.PubKey.Internal (dsaTruncHash)
|
||||
import Crypto.Hash
|
||||
import Crypto.Hash.Types (hashDigestSize)
|
||||
import Crypto.Random.Types
|
||||
import Data.Data
|
||||
|
||||
-- | Represent a ECDSA signature namely R and S.
|
||||
data Signature = Signature
|
||||
|
||||
@ -11,6 +11,11 @@ module Crypto.PubKey.Internal
|
||||
, dsaTruncHash
|
||||
) where
|
||||
|
||||
import Crypto.Hash
|
||||
import Crypto.Internal.ByteArray (ByteArrayAccess)
|
||||
import Crypto.Number.Basic (numBits)
|
||||
import Crypto.Number.Serialize
|
||||
import Data.Bits (shiftR)
|
||||
import Data.List (foldl')
|
||||
|
||||
-- | This is a strict version of and
|
||||
|
||||
Loading…
Reference in New Issue
Block a user