remove warnings

This commit is contained in:
Vincent Hanquez 2015-04-20 06:02:12 +01:00
parent 3d46eaea9b
commit f86b493e32
4 changed files with 3 additions and 7 deletions

View File

@ -17,12 +17,10 @@ module Crypto.Cipher.Types
, StreamCipher(..) , StreamCipher(..)
, DataUnitOffset , DataUnitOffset
, KeySizeSpecifier(..) , KeySizeSpecifier(..)
, AEAD(..)
, AEADMode(..)
, AEADModeImpl(..)
-- , cfb8Encrypt -- , cfb8Encrypt
-- , cfb8Decrypt -- , cfb8Decrypt
-- * AEAD functions -- * AEAD functions
, AEADMode(..)
, module Crypto.Cipher.Types.AEAD , module Crypto.Cipher.Types.AEAD
-- * Initial Vector type and constructor -- * Initial Vector type and constructor
, IV , IV

View File

@ -27,7 +27,6 @@ import GHC.Types
import GHC.Prim import GHC.Prim
import GHC.Word import GHC.Word
import GHC.Ptr import GHC.Ptr
import Data.Word (Word8)
import Foreign.Marshal.Utils (copyBytes) import Foreign.Marshal.Utils (copyBytes)
import Data.SecureMem (SecureMem) import Data.SecureMem (SecureMem)
import Crypto.Internal.CompatPrim import Crypto.Internal.CompatPrim

View File

@ -60,7 +60,7 @@ array32 (I# n) l = unsafeDoIO $ IO $ \s ->
loop i st mb ((W32# x):xs) loop i st mb ((W32# x):xs)
| booleanPrim (i ==# n) = freezeArray mb st | booleanPrim (i ==# n) = freezeArray mb st
| otherwise = | otherwise =
let st' = writeWord32Array# mb i x st let !st' = writeWord32Array# mb i x st
in loop (i +# 1#) st' mb xs in loop (i +# 1#) st' mb xs
freezeArray mb st = freezeArray mb st =
case unsafeFreezeByteArray# mb st of case unsafeFreezeByteArray# mb st of
@ -128,7 +128,7 @@ mutableArrayRead32 (MutableArray32 m) (I# o) = IO $ \s -> case readWord32Array#
{-# INLINE mutableArrayRead32 #-} {-# INLINE mutableArrayRead32 #-}
mutableArrayWrite32 :: MutableArray32 -> Int -> Word32 -> IO () mutableArrayWrite32 :: MutableArray32 -> Int -> Word32 -> IO ()
mutableArrayWrite32 (MutableArray32 m) (I# o) (W32# w) = IO $ \s -> let s' = writeWord32Array# m o w s in (# s', () #) mutableArrayWrite32 (MutableArray32 m) (I# o) (W32# w) = IO $ \s -> let !s' = writeWord32Array# m o w s in (# s', () #)
{-# INLINE mutableArrayWrite32 #-} {-# INLINE mutableArrayWrite32 #-}
mutableArrayWriteXor32 :: MutableArray32 -> Int -> Word32 -> IO () mutableArrayWriteXor32 :: MutableArray32 -> Int -> Word32 -> IO ()

View File

@ -33,7 +33,6 @@ import Crypto.Internal.Imports
import Crypto.Internal.Memory import Crypto.Internal.Memory
import Crypto.Internal.ByteArray import Crypto.Internal.ByteArray
import Crypto.Error import Crypto.Error
import Data.ByteString (ByteString)
-- | An Ed25519 Secret key -- | An Ed25519 Secret key
newtype SecretKey = SecretKey SecureBytes newtype SecretKey = SecretKey SecureBytes