SHA 1.0.0 → 1.0.1
raw patch · 2 files changed
+6/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Digest.Pure.SHA: bytestringDigest :: Digest -> ByteString
Files
- Data/Digest/Pure/SHA.hs +5/−0
- SHA.cabal +1/−1
Data/Digest/Pure/SHA.hs view
@@ -10,6 +10,7 @@ , sha512 , showDigest , integerDigest+ , bytestringDigest #ifdef SHA_TEST , toBigEndianBS, fromBigEndianBS , find_k@@ -368,6 +369,10 @@ integerDigest :: Digest -> Integer integerDigest (Digest bs) = BS.foldl' addShift 0 bs where addShift n y = (n `shiftL` 8) .|. fromIntegral y++-- | Convert a digest to a ByteString.+bytestringDigest :: Digest -> ByteString+bytestringDigest (Digest bs) = bs -- -------------------------------------------------------------------------- --
SHA.cabal view
@@ -1,6 +1,6 @@ name: SHA category: Cryptography, Codec-version: 1.0.0+version: 1.0.1 license: BSD3 license-file: LICENSE author: Adam Wick <awick@galois.com>