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

Module Pbkdf.MakeSource

Given a Hash/pseudorandom function, get the PBKDF

Parameters

module H : Digestif.S

Signature

Sourceval pbkdf1 : password:string -> salt:string -> count:int -> dk_len:int -> string

pbkdf1 password salt count dk_len is dk, the derived key of dk_len octets. The salt must be eight octets, count the iteration count.

  • raises Invalid_argument

    when either salt is not eight octets long or either count or dk_len are not valid.

Sourceval pbkdf2 : password:string -> salt:string -> count:int -> dk_len:int32 -> string

pbkdf2 password salt count dk_len is dk, the derived key of dk_len octets.

OCaml

Innovation. Community. Security.