package hacl

  1. Overview
  2. Docs
type key
val keybytes : int
val zerobytes : int
val boxzerobytes : int
val unsafe_of_bytes : Bigstring.t -> key
val blit_of_bytes : Bigstring.t -> int -> key
val genkey : unit -> key
val box : key:key -> nonce:Bigstring.t -> msg:Bigstring.t -> cmsg:Bigstring.t -> unit
val box_open : key:key -> nonce:Bigstring.t -> cmsg:Bigstring.t -> msg:Bigstring.t -> bool
OCaml

Innovation. Community. Security.