package tezos-crypto

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Hacl.Box

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 -> Bytes.t
val blit_to_bytes : 'a key -> ?pos:int -> Bytes.t -> unit
val unsafe_sk_of_bytes : Bytes.t -> secret key
val unsafe_pk_of_bytes : Bytes.t -> public key
val unsafe_ck_of_bytes : Bytes.t -> combined key
val of_seed : ?pos:int -> 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:Bytes.t -> msg:Bytes.t -> cmsg:Bytes.t -> unit
val box_open : k:combined key -> nonce:Bytes.t -> cmsg:Bytes.t -> msg:Bytes.t -> bool
val box_noalloc : k:combined key -> nonce:Bytes.t -> tag:Bytes.t -> buf:Bytes.t -> unit
val box_open_noalloc : k:combined key -> nonce:Bytes.t -> tag:Bytes.t -> buf:Bytes.t -> bool
OCaml

Innovation. Community. Security.