aes

package module
v0.0.0-...-62ffbfe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize   = 32
	NonceSize = 12
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key, msg []byte) ([]byte, error)

Decrypt recovers a msg secured using AES.

func Encrypt

func Encrypt(key, msg []byte) ([]byte, error)

Encrypt secures a msg using AES-GCM.

func GenerateKey

func GenerateKey() ([]byte, error)

GenerateKey generates a new AES key.

func GenerateNonce

func GenerateNonce(size int) (nonce []byte, err error)

GenerateNonce generates a new AES.

Types

This section is empty.

Jump to

Keyboard shortcuts

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