hacl

Tezos binding for Hacl*
IN THIS PACKAGE
Module Hacl . Secretbox
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