package brr

  1. Overview
  2. Docs
On This Page
  1. Properties
Legend:
Library
Module
Module type
Parameter
Class
Class type

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.

OCaml

Innovation. Community. Security.