xchacha20sha256

package
v0.0.0-...-b60358c Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize   = 32
	NonceSize = 24
	TagSize   = 32
)

Variables

View Source
var (
	ErrOpen = errors.New("xchacha20blake3: error decrypting ciphertext")
)

Functions

This section is empty.

Types

type XChaCha20Sha256

type XChaCha20Sha256 struct {
	// contains filtered or unexported fields
}

func New

func New(key []byte) (*XChaCha20Sha256, error)

func (*XChaCha20Sha256) NonceSize

func (*XChaCha20Sha256) NonceSize() int

func (*XChaCha20Sha256) Open

func (x *XChaCha20Sha256) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error)

func (*XChaCha20Sha256) Overhead

func (*XChaCha20Sha256) Overhead() int

func (*XChaCha20Sha256) Seal

func (x *XChaCha20Sha256) Seal(dst, nonce, plaintext, additionalData []byte) []byte

Jump to

Keyboard shortcuts

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