package hacl
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Hacl.Box
val unsafe_to_bytes : _ key -> Bigstring.t
unsafe_to_bytes k
is the internal Bigstring.t
where the key is stored. DO NOT MODIFY.
val blit_to_bytes : _ key -> ?pos:int -> Bigstring.t -> unit
val unsafe_sk_of_bytes : Bigstring.t -> secret key
val unsafe_pk_of_bytes : Bigstring.t -> public key
val unsafe_ck_of_bytes : Bigstring.t -> combined key
val of_seed : ?pos:int -> Bigstring.t -> secret key
val box :
k:combined key ->
nonce:Bigstring.t ->
msg:Bigstring.t ->
cmsg:Bigstring.t ->
unit
val box_open :
k:combined key ->
nonce:Bigstring.t ->
cmsg:Bigstring.t ->
msg:Bigstring.t ->
bool