Discover Packages
github.com/jedisct1/xsecretbox
package
module
Version:
v0.0.0-...-3afc491
Opens a new window with list of versions in this module.
Published: Dec 12, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
README
README
¶
xsecretbox
Go implementation of crypto_secretbox_xchacha20poly1305
Uses aead/chacha20poly1305 .
Expand ▾
Collapse ▴
Documentation
¶
View Source
const (
KeySize = 32
NonceSize = 24
TagSize = 16
)
Open does what the name suggests
func Seal(out, nonce, message, key []byte ) []byte
Seal does what the name suggests
SharedKey computes a shared secret compatible with the one used by `crypto_box_xchacha20poly1305`
Source Files
¶
Click to show internal directories.
Click to hide internal directories.