remove digestToHex
This commit is contained in:
parent
5d3e825f2e
commit
b4adeec6d8
@ -23,7 +23,6 @@ module Crypto.Hash
|
||||
, Context
|
||||
, Digest
|
||||
-- * Functions
|
||||
, digestToHexByteString
|
||||
, digestFromByteString
|
||||
-- * hash methods parametrized by algorithm
|
||||
, hashInitWith
|
||||
@ -58,10 +57,6 @@ hash bs = hashFinalize $ hashUpdate hashInit bs
|
||||
hashlazy :: HashAlgorithm a => L.ByteString -> Digest a
|
||||
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
|
||||
hashInit :: HashAlgorithm a
|
||||
=> Context a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user