packages feed

pureMD5 2.0.0.0 → 2.1.0.0

raw patch · 2 files changed

+11/−10 lines, 2 filesdep ~cerealdep ~crypto-apiPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: cereal, crypto-api

API changes (from Hackage documentation)

- Data.Digest.Pure.MD5: blockSize :: (BlockCipher k) => Tagged k BitLength
+ Data.Digest.Pure.MD5: blockLength :: (Hash ctx d) => Tagged d BitLength
+ Data.Digest.Pure.MD5: class (Serialize d, Eq d, Ord d) => Hash ctx d | d -> ctx, ctx -> d
+ Data.Digest.Pure.MD5: finalize :: (Hash ctx d) => ctx -> ByteString -> d
+ Data.Digest.Pure.MD5: initialCtx :: (Hash ctx d) => ctx
+ Data.Digest.Pure.MD5: outputLength :: (Hash ctx d) => Tagged d BitLength
+ Data.Digest.Pure.MD5: updateCtx :: (Hash ctx d) => ctx -> ByteString -> ctx

Files

Data/Digest/Pure/MD5.hs view
@@ -8,14 +8,14 @@ -- Portability : portable, requires bang patterns and ByteString -- Tested with : GHC-6.8.1 ----- |To get an MD5 digest of a lazy ByteString (you probably want this):---   hash = md5 lazyByteString+-- | It is suggested you use the 'crypto-api' class-based interface to access the MD5 algorithm.+-- Either rely on type inference or provide an explicit type: ----- Alternativly, for a context that can be further updated/finalized:---   partialCtx = md5Update md5InitialContext partOfFile+-- @+--   hashFileStrict = liftM hash' B.readFile+--   hashFileLazyBS = liftM hash B.readFile+-- @ ----- And you finialize the context with:---   hash = md5Finalize partialCtx -----------------------------------------------------------------------------  module Data.Digest.Pure.MD5@@ -25,11 +25,12 @@         , MD5Digest         -- * Static data         , md5InitialContext-        , blockSize         -- * Functions         , md5         , md5Update         , md5Finalize+	-- * Crypto-API interface+	, Hash(..)         ) where  import Data.ByteString.Unsafe (unsafeUseAsCString)@@ -50,7 +51,7 @@ import qualified Data.Serialize.Get as G import qualified Data.Serialize.Put as P import qualified Data.Serialize as S-import Crypto.Classes+import Crypto.Classes (Hash(..), hash) import Data.Tagged import Numeric 
pureMD5.cabal view
@@ -1,5 +1,5 @@ name:		pureMD5-version:	2.0.0.0+version:	2.1.0.0 license:	BSD3 license-file:	LICENSE author:		Thomas DuBuisson <thomas.dubuisson@gmail.com>@@ -23,7 +23,7 @@   default: False  Library-  Build-Depends: base == 4.*, bytestring >= 0.9 && < 0.10, binary >= 0.4.0 && < 0.6.0, cereal >= 0.2, crypto-api >= 0.0.0.1, tagged+  Build-Depends: base == 4.*, bytestring >= 0.9 && < 0.10, binary >= 0.4.0 && < 0.6.0, cereal >= 0.2 && < 0.4, crypto-api < 0.2, tagged   ghc-options:	-O2 -funfolding-use-threshold66 -funfolding-creation-threshold66 -fexcess-precision -funbox-strict-fields   hs-source-dirs:   exposed-modules: Data.Digest.Pure.MD5