sbox

package
v0.0.0-...-de1d70c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize   = 32
	NonceSize = 24
)

Variables

View Source
var (
	ErrSeal = errors.New("secret: encryption failed")
	ErrOpen = errors.New("secret: decryption failed")
)

Functions

func GenNonce

func GenNonce() (*[NonceSize]byte, error)

func Open

func Open(key *[KeySize]byte, message []byte) ([]byte, error)

func Seal

func Seal(key *[KeySize]byte, message []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL