chacha20poly1305kit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

func DecryptWithNonceSize

func DecryptWithNonceSize(cipherBytes []byte, key []byte, nonceSize int) ([]byte, error)

func Encrypt

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

func EncryptWithNonce

func EncryptWithNonce(plainBytes []byte, key []byte, nonceBytes []byte) ([]byte, error)

func EncryptWithNonceSize

func EncryptWithNonceSize(plainBytes []byte, key []byte, nonceSize int) ([]byte, error)

32 bit key for AES-256 24 bit key for AES-192 16 bit key for AES-128

func NewAEAD

func NewAEAD(key []byte) (cipher.AEAD, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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