package hacl

  1. Overview
  2. Docs
type key
val keybytes : int
val zerobytes : int
val boxzerobytes : int
val unsafe_of_bytes : Bigstring.t -> key
  • raises Invalid_argument

    if argument is not keybytes bytes long

val blit_of_bytes : Bigstring.t -> int -> key
  • raises Invalid_argument

    if argument is not keybytes bytes long

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.