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.1.tbz
sha256=922efdf80d35b8fcb0ec7d0143400f45bb986cb1c715d717d5402f111cf8f8e5
sha512=8584c24b249d9d264fc58e1cd8299968b6098fe915fe7c8f935937c7e3cb200bde0bd0fdb042fb000337fb0b6298866068933cd20b95e51a021cbf3e9e3c6456

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