Digestif_pbkdf.Make
Given a Hash/pseudorandom function, get the PBKDF
module H : Digestif.S
val pbkdf1 : password:Cstruct.t -> salt:Cstruct.t -> count:int -> dk_len:int -> Cstruct.t
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.
pbkdf1 password salt count dk_len
dk
dk_len
salt
count
when either salt is not eight octets long or either count or dk_len are not valid.
val pbkdf2 : password:Cstruct.t -> salt:Cstruct.t -> count:int -> dk_len:int32 -> Cstruct.t
pbkdf2 password salt count dk_len is dk, the derived key of dk_len octets.
pbkdf2 password salt count dk_len
when either count or dk_len are not valid