Module Crypto_algo.Pbkdf2_paramsSource

PBKFD2 key derivation parameters.

Sourcetype t

The type for Pbkdf2Params objects.

Sourceval v : ?name:Jstr.t -> hash:Jstr.t -> salt:Brr.Tarray.Buffer.t -> iterations:int -> unit -> algo

v ~name ~hash ~salt ~iterations is key derivation parameters object with given properties. name defaults to "PBKDF2".

Sourceval of_algo : algo -> t

of_algo a is an unsafe conversion from a.

Properties

Sourceval name : t -> Jstr.t

name a is the algorithm to use.

Sourceval hash : t -> Jstr.t

hash a is the name of the digest function to use.

salt a is the random salt to use.

Sourceval iterations : t -> int

iteration a is the number of iterations to use.