stdxgit.sr.ht/~pingoo/stdx/crypto/schacha20blake3 Index | Files

package schacha20blake3

import "git.sr.ht/~pingoo/stdx/crypto/schacha20blake3"

Index

Constants

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

Variables

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

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

Source Files

schacha20blake3.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
4 months ago

Tools for package owners.