HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulecrypton-2.1.7Haskell2010

Crypto.KDF.HKDF

Key Derivation Function based on HMAC

See RFC5869

  • 1 type
  • 5 values
  • Packagecrypton-2.1.7
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause AND MIT AND ISC
  • SourceHKDF.hs
datadata PRK a
#

Pseudo Random Key

Instances2Eq, ByteArrayAccess
  • Eq (PRK a)Defined in crypton-2.1.7 · Crypto.KDF.HKDF
  • ByteArrayAccess (PRK a)Defined in crypton-2.1.7 · Crypto.KDF.HKDF
valueextractSkip :: ByteArrayAccess ikm => ikm -> PRK a
#

Create a PRK directly from the input key material.

Only use when guaranteed to have a good quality and random data to use directly as key. This effectively skip a HMAC with key=salt and data=key.

valuetryExpand
  1. :: (HashAlgorithm a, ByteArrayAccess info, ByteArray out)
  2. => PRK a

    Pseudo Random Key

  3. -> info

    Optional context and application specific information

  4. -> Int

    Output length in bytes

  5. -> CryptoFailable out

    Output data

#

Expand key material of specific length out of the parameters, reporting a length the RFC refuses rather than raising.