package brr

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

AES GCM encryption parameters.

type t

The type for AesGcmParams objects.

val v : ?name:Jstr.t -> iv:Brr.Tarray.Buffer.t -> additional_data:Brr.Tarray.Buffer.t option -> tag_length:int option -> unit -> algo

v ~name ~iv ~additional_data ~tag_length is an encryption parameter object with given properties. name defaults to "AES-GCM".

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.

iv a is the initialisation vector to use.

val additional_data : t -> Brr.Tarray.Buffer.t option

additional_data a is the additionnal data to use.

val tag_length : t -> int option

additional_data a is the authentication tag bit size to use.

OCaml

Innovation. Community. Security.