package kdf

  1. Overview
  2. Docs
Key Derivation Functions: HKDF RFC 5869, PBKDF RFC 2898, SCRYPT RFC 7914

Install

dune-project
 Dependency

Authors

Maintainers

Sources

kdf-1.1.2.tbz
sha256=a327e1daab2d367d75b2fba85f5e827886295225f94c09e68e24a2e2a7508100
sha512=1f644f6a3dc734d981e1867ad6b5662c0d5e10b71b02029f7998cb54aaf037f2e03e9b5f1562e98862ba3d492d5b78b898d126fab46ed030653adbb43ff509dd

doc/kdf.hkdf/Hkdf/index.html

Module HkdfSource

RFC 5869 specifies a HMAC-based Extract-and-Expand Key Derivation Function (HKDF), which is abstracted over a specific hash function.

Sourcemodule type S = sig ... end
Sourcemodule Make (H : Digestif.S) : S

Given a Hash function, get the HKDF

Sourceval extract : hash:Digestif.hash' -> ?salt:string -> string -> string

convenience extract hash salt ikm where the hash has to be provided explicitly

Sourceval expand : hash:Digestif.hash' -> prk:string -> ?info:string -> int -> string

convenience expand hash prk info len where the hash has to be provided explicitly