package kdf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Given a Hash/pseudorandom function, get the PBKDF

Parameters

module H : Digestif.S

Signature

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

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