Module Crypto_algo.Hmac_key_gen_params

HMAC key generation parameters.

type t

The type for HmacKeyGenParams objects.

val v : ?name:Jstr.t -> ?length:int -> hash:Jstr.t -> unit -> algo

v ~name ~length ~hash is a key generation algorithm with the given properties. name defaults to "HMAC" and length to None.

val of_algo : algo -> t

of_algo a is an unsafe conversion from a.

Properties

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 length : t -> int option

length a is the bit length of the key.