From b4adeec6d8c7518887488707075865672eb22b36 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Fri, 1 May 2015 07:40:28 +0100 Subject: [PATCH] remove digestToHex --- Crypto/Hash.hs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Crypto/Hash.hs b/Crypto/Hash.hs index b0611c9..cf477f4 100644 --- a/Crypto/Hash.hs +++ b/Crypto/Hash.hs @@ -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