package noise

  1. Overview
  2. Docs
type t =
  1. | AES_GCM
  2. | Chacha_poly
val equal : t -> t -> Ppx_deriving_runtime.bool
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val of_string : string -> (t, string) Stdlib.result
val encrypt_with_ad : t -> key:Private_key.t -> nonce:int64 -> ad:Cstruct.t -> Cstruct.t -> (Cstruct.t, string) Stdlib.result
val decrypt_with_ad : t -> key:Private_key.t -> nonce:int64 -> ad:Cstruct.t -> Cstruct.t -> (Cstruct.t, string) Stdlib.result
OCaml

Innovation. Community. Security.