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/Make/index.html

Module Hkdf.MakeSource

Given a Hash function, get the HKDF

Parameters

module H : Digestif.S

Signature

Sourceval extract : ?salt:string -> string -> string

extract salt ikm is prk, the pseudorandom key of hash length octets. The salt is an optional non-secret random value, ikm the input key material.

Sourceval expand : prk:string -> ?info:string -> int -> string

expand prk info length is okm, the output keying material. Given the pseudorandom key of hash length (usually output of !extract step), and an optional context and application specific information info, the okm is generated.

  • raises Failure

    when length is negative or exceeds 255 * hash output size (the RFC 5869 limit).