Documentation
¶
Overview ¶
Package xsecretbox implements encryption/decryption of a message using specified keys
Index ¶
Constants ¶
View Source
const ( // KeySize is what the name suggests KeySize = chacha20.KeySize // NonceSize is what the name suggests NonceSize = chacha20.NonceSizeX // TagSize is what the name suggests TagSize = poly1305.TagSize // BlockSize is what the name suggests BlockSize = 64 )
Variables ¶
This section is empty.
Functions ¶
func SharedKey ¶
func SharedKey(secretKey [curve25519.ScalarSize]byte, publicKey [curve25519.PointSize]byte) ([KeySize]byte, error)
SharedKey computes a shared secret compatible with the one used by `crypto_box_xchacha20poly1305`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.