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.0.tbz
sha256=996c165b6e9532816d4ae5c7e77527a70d2f111a25583c0aeb72f4b0278569c5
sha512=85a8e95389be1040fa1ac76dc49a87d205366b5220f5c023d5ec3e72d5c193a9379dfd920027b9b58aee227300a4c558763380f607cc6558497352c13a82ed15

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 Failure

    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.

  • raises Failure

    when either count or dk_len are not valid