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

Module PbkdfSource

Sourcemodule type S = sig ... end

RFC 2898 specifies two password-based key derivation functions (PBKDF1 and PBKDF2), which are abstracted over a specific hash/pseudorandom function.

Sourcemodule Make (H : Digestif.S) : S

Given a Hash/pseudorandom function, get the PBKDF

Sourceval pbkdf1 : hash:Digestif.hash' -> password:string -> salt:string -> count:int -> dk_len:int -> string

convenience pbkdf1 hash password salt count dk_len where the hash has to be provided explicitly

Sourceval pbkdf2 : prf:Digestif.hash' -> password:string -> salt:string -> count:int -> dk_len:int32 -> string

convenience pbkdf2 prf password salt count dk_len where the prf has to be provided explicitly

OCaml

Innovation. Community. Security.