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

package bchacha20blake3

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

Index

Constants

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

Variables

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

Types

type BChaCha20Blake3

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

func New

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

func (*BChaCha20Blake3) NonceSize

func (*BChaCha20Blake3) NonceSize() int

func (*BChaCha20Blake3) Open

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

func (*BChaCha20Blake3) Overhead

func (*BChaCha20Blake3) Overhead() int

func (*BChaCha20Blake3) Seal

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

Source Files

bchacha20blake3.go

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

Tools for package owners.