HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecryptonite-0.30Haskell2010

Crypto.KDF.HKDF

Key Derivation Function based on HMAC

See RFC5869

  • 1 type
  • 3 values
  • Packagecryptonite-0.30
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHKDF.hs
datadata PRK a
#

Pseudo Random Key

Instances2Eq, ByteArrayAccess
  • Eq (PRK a)Defined in cryptonite-0.30 · Crypto.KDF.HKDF
  • ByteArrayAccess (PRK a)Defined in cryptonite-0.30 · 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.

valueexpand
  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. -> out

    Output data

#

Expand key material of specific length out of the parameters