schacha20blake3

package
v0.0.0-...-8ec3fd9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

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

Functions

This section is empty.

Types

type SChaCha20Blake3

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

func New

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

func (*SChaCha20Blake3) NonceSize

func (*SChaCha20Blake3) NonceSize() int

func (*SChaCha20Blake3) Open

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

func (*SChaCha20Blake3) Overhead

func (*SChaCha20Blake3) Overhead() int

func (*SChaCha20Blake3) Seal

func (x *SChaCha20Blake3) 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