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"
andlength
toNone
.
Properties
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.