Module Crypto_algo.Hmac_import_params

HMAC key import parameters.

type t

The type for HmacImportParams objects.

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

v ~name ~length ~hash is a key import parameter object 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.