package kdf

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

Install

Dune Dependency

Authors

Maintainers

Sources

kdf-1.0.0.tbz
sha256=d161582b0efe66d958dd6b8c9c21068e9f6454ce218377d6cf87823dec62e0ce
sha512=8c518494a7c2e030c079a22fc0d27e4dccd1b2d6edb8fcd2ee7121cdd3d56ff416a37876b6bb13b8be015922c3487536038373bfa0934a165055c1cb5dd3c2e1

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

extract 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.

OCaml

Innovation. Community. Security.