remove digestToHex
This commit is contained in:
parent
5d3e825f2e
commit
b4adeec6d8
@ -23,7 +23,6 @@ module Crypto.Hash
|
|||||||
, Context
|
, Context
|
||||||
, Digest
|
, Digest
|
||||||
-- * Functions
|
-- * Functions
|
||||||
, digestToHexByteString
|
|
||||||
, digestFromByteString
|
, digestFromByteString
|
||||||
-- * hash methods parametrized by algorithm
|
-- * hash methods parametrized by algorithm
|
||||||
, hashInitWith
|
, hashInitWith
|
||||||
@ -58,10 +57,6 @@ hash bs = hashFinalize $ hashUpdate hashInit bs
|
|||||||
hashlazy :: HashAlgorithm a => L.ByteString -> Digest a
|
hashlazy :: HashAlgorithm a => L.ByteString -> Digest a
|
||||||
hashlazy lbs = hashFinalize $ hashUpdates hashInit (L.toChunks lbs)
|
hashlazy lbs = hashFinalize $ hashUpdates hashInit (L.toChunks lbs)
|
||||||
|
|
||||||
-- | Return the hexadecimal (base16) bytestring of the digest
|
|
||||||
digestToHexByteString :: Digest a -> ByteString
|
|
||||||
digestToHexByteString = toHex . B.convert
|
|
||||||
|
|
||||||
-- | Initialize a new context for this hash algorithm
|
-- | Initialize a new context for this hash algorithm
|
||||||
hashInit :: HashAlgorithm a
|
hashInit :: HashAlgorithm a
|
||||||
=> Context a
|
=> Context a
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user