common

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Available = true
)

Variables

View Source
var (
	ErrAuth           = fmt.Errorf("message authentication failed")
	ErrTruncated      = fmt.Errorf("ciphertext too short")
	ErrBadNonceLength = fmt.Errorf("invalid nonce length")
	ErrBadKeyLength   = fmt.Errorf("invalid key length")
	ErrBadTagLength   = fmt.Errorf("invalid tag length")
)

Functions

This section is empty.

Types

type Aegis

type Aegis struct {
	Key    []byte
	TagLen int
	cipher.AEAD
}

func (*Aegis) Overhead

func (aead *Aegis) Overhead() int

The overhead of the AEAD, in bytes, corresponding to the length of the tag.

func (*Aegis) Wipe

func (aead *Aegis) Wipe()

Wipe clears the key from memory (best-effort)

Jump to

Keyboard shortcuts

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