sha256

Pure Haskell SHA-256, HMAC-SHA256 as specified by RFC's 6234 and 2104.
git clone git://git.ppad.tech/sha256.git
Log | Files | Refs | README | LICENSE

commit 2d09f74ee2ae5798953fc8811a569f1c71718676
parent 38b72835687a3a689ade426afdf9451b083f2536
Author: Jared Tobin <jared@jtobin.io>
Date:   Wed, 11 Sep 2024 14:28:05 +0400

lib: further comment tweaks

Diffstat:
Mlib/Crypto/Hash/SHA256.hs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Crypto/Hash/SHA256.hs b/lib/Crypto/Hash/SHA256.hs @@ -351,7 +351,7 @@ hash_lazy = -- https://datatracker.ietf.org/doc/html/rfc2104#section-2 -- | Produce a message authentication code for a strict bytestring, --- based on the provided key, via SHA-256. +-- based on the provided (strict, bytestring) key, via SHA-256. -- -- The 256-bit MAC is returned as a strict bytestring. -- @@ -361,7 +361,7 @@ hmac :: BS.ByteString -> BS.ByteString -> BS.ByteString hmac k = hmac_lazy k . BL.fromStrict -- | Produce a message authentication code for a lazy bytestring, based --- on the provided key, via SHA-256. +-- on the provided (strict, bytestring) key, via SHA-256. -- -- The 256-bit MAC is returned as a strict bytestring. --