Module Crypto_algo.Hkdf_params

HKDF key derivation parameters.

type t

The type for HkdfParams objects.

val v : ?name:Jstr.t -> hash:Jstr.t -> salt:Brr.Tarray.Buffer.t -> info:Brr.Tarray.Buffer.t -> unit -> algo

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

val of_algo : algo -> t

of_algo a is an unsafe conversion from a.


val name : t -> Jstr.t

name a is the algorithm to use.

val hash : t -> Jstr.t

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

val salt : t -> Brr.Tarray.Buffer.t

salt a is the random salt to use.

val info : t -> Brr.Tarray.Buffer.t

info a is the info to use.