hkdf

Pure Haskell HKDF (docs.ppad.tech/hkdf).
git clone git://git.ppad.tech/hkdf.git
Log | Files | Refs | README | LICENSE

commit d0561f618cf23ba5947fe4add184fa2b144361fa
parent e4de9622c6530405bb53b687c3e081438866a15d
Author: Jared Tobin <jared@jtobin.io>
Date:   Fri, 10 Jan 2025 15:12:33 +0400

lib: comments

Diffstat:
MREADME.md | 2+-
Mlib/Crypto/KDF/HMAC.hs | 7+++----
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -12,7 +12,7 @@ A sample GHCi session: > -- supply your own HMAC function > import qualified Crypto.Hash.SHA256 as SHA256 > - > -- derive a 32-byte key from your secret + > -- derive a 32-byte key from a secret > hkdf SHA256.hmac "my salt" "my optional info" 32 "my secret input" "\EM\232\v\140\202\230\f2:\221n\221\209\233\US\209>\174_!\138\255\\C\150\237^X\226\tt\252" ``` diff --git a/lib/Crypto/KDF/HMAC.hs b/lib/Crypto/KDF/HMAC.hs @@ -1,3 +1,4 @@ +{-# OPTIONS_HADDOCK prune #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE ViewPatterns #-} @@ -13,13 +14,11 @@ module Crypto.KDF.HMAC ( -- * HMAC-based KDF hkdf + , HMAC - -- * HKDF Internals + -- internals , extract , expand - - -- internal types - , HMAC , HMACEnv ) where