Module Pbkdf.Make
Given a Hash/pseudorandom function, get the PBKDF
Parameters
H : Mirage_crypto.Hash.S
Signature
val pbkdf1 : password:Cstruct.t -> salt:Cstruct.t -> count:int -> dk_len:int -> Cstruct.t
pbkdf1 password salt count dk_len
isdk
, the derived key ofdk_len
octets. Thesalt
must be eight octets,count
the iteration count.- raises Invalid_argument
when either
salt
is not eight octets long or eithercount
ordk_len
are not valid.