secret

package
v0.0.0-...-e9dd2fa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const NonceSize int = 24
View Source
const Overhead int = 16
View Source
const SecretKeySize int = 32

Variables

This section is empty.

Functions

func RandBytes

func RandBytes(bSize int) []byte

Types

type ISecretKey

type ISecretKey interface {
	Raw() ([]byte, error)
	Encrypt(data []byte) ([]byte, error)
	Decrypt(m []byte) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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