encerr

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package encerr provides shared sentinel errors and utilities used across the encryption library's sub-packages. It exists to break import cycles: the root encryption package re-exports everything defined here.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNotFound    = errors.New("encryption key not found")
	ErrKeyExists      = errors.New("encryption key already exists")
	ErrEncryption     = errors.New("encryption failed")
	ErrDecryption     = errors.New("decryption failed")
	ErrInvalidKeySize = errors.New("invalid key size")
	ErrKeyRevoked     = errors.New("encryption key has been revoked")
	ErrKeyDestroyed   = errors.New("encryption key has been destroyed")
)

Sentinel errors used across the encryption library.

Functions

func ZeroBytes

func ZeroBytes(b []byte)

ZeroBytes overwrites a byte slice with zeros to clear sensitive key material from memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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