package nocrypto

  1. Overview
  2. Docs

Galois/Counter Mode.

type key
type result = {
  1. message : Cstruct.t;
  2. tag : Cstruct.t;
}
val of_secret : Cstruct.t -> key
val key_sizes : int array
val block_size : int
val encrypt : key:key -> iv:Cstruct.t -> ?adata:Cstruct.t -> Cstruct.t -> result
val decrypt : key:key -> iv:Cstruct.t -> ?adata:Cstruct.t -> Cstruct.t -> result
OCaml

Innovation. Community. Security.