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