← all modules

Std.Crypto.Kdf

Std.Crypto.Kdf
  Std.Crypto.Kdf — HKDF-SHA256 key derivation (RFC 5869).

Values
  derive : String -> String -> Int -> Secret -> Result Error Secret
      `derive salt info length inputKeyMaterial` — extract, then expand: the
  expand : Secret -> String -> Int -> Result Error Secret
      `expand pseudorandomKey info length` — HKDF-Expand: `length` bytes of
  extract : String -> Secret -> Secret
      `extract salt inputKeyMaterial` — HKDF-Extract: a 32-byte pseudorandom