val pbkdf2 : password:Bytes.t -> salt:Bytes.t -> count:int -> dk_len:int32 -> Bytes.t

pbkdf2 password salt count dk_len is dk, the derived key of dk_len octets.

  • raises Invalid_argument

    when either count or dk_len are not valid