package tezos-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type combined = Tezos_hacl_glue__Hacl.Box.combined
type 'a key = 'a Tezos_hacl_glue__Hacl.Box.key
val skbytes : int
val pkbytes : int
val ckbytes : int
val tagbytes : int
val equal : 'a key -> 'a key -> bool
val unsafe_to_bytes : 'a key -> Stdlib.Bytes.t
val blit_to_bytes : 'a key -> ?pos:int -> Stdlib.Bytes.t -> unit
val unsafe_sk_of_bytes : Stdlib.Bytes.t -> secret key
val unsafe_pk_of_bytes : Stdlib.Bytes.t -> public key
val unsafe_ck_of_bytes : Stdlib.Bytes.t -> combined key
val of_seed : ?pos:int -> Stdlib.Bytes.t -> secret key
val neuterize : secret key -> public key
val keypair : unit -> public key * secret key
val dh : public key -> secret key -> combined key
val box : k:combined key -> nonce:Stdlib.Bytes.t -> msg:Stdlib.Bytes.t -> cmsg:Stdlib.Bytes.t -> unit
val box_open : k:combined key -> nonce:Stdlib.Bytes.t -> cmsg:Stdlib.Bytes.t -> msg:Stdlib.Bytes.t -> bool
val box_noalloc : k:combined key -> nonce:Stdlib.Bytes.t -> tag:Stdlib.Bytes.t -> buf:Stdlib.Bytes.t -> unit
val box_open_noalloc : k:combined key -> nonce:Stdlib.Bytes.t -> tag:Stdlib.Bytes.t -> buf:Stdlib.Bytes.t -> bool
OCaml

Innovation. Community. Security.