bchacha20blake3

package
v0.0.0-...-0941746 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

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

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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