package brr

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

Module Crypto_algo.Hmac_key_gen_paramsSource

HMAC key generation parameters.

Sourcetype t

The type for HmacKeyGenParams objects.

Sourceval 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.

Sourceval of_algo : algo -> t

of_algo a is an unsafe conversion from a.

Properties

Sourceval name : t -> Jstr.t

name a is the algorithm to use.

Sourceval hash : t -> Jstr.t

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

Sourceval length : t -> int option

length a is the bit length of the key.