errs

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DecodeSrcError = func(mode string) error {
	return fmt.Errorf("invalid src, the src can't be decoded by %s", mode)
}

DecodeSrcError returns a decode src error

View Source
var InvalidFileError = func(file string) error {
	return fmt.Errorf("invalid file %q, please make sure the file exists", file)
}

InvalidFileError returns an invalid file error

View Source
var InvalidIVError = func(length int, size int) error {
	return fmt.Errorf("invalid iv size %d, the iv size must be %d", length, size)
}

InvalidIVError returns an invalid IV error

View Source
var InvalidModeOrPaddingError = func(mode, padding string) error {
	return fmt.Errorf("invalid encryption mode %q or padding %q", mode, padding)
}

InvalidModeOrPaddingError returns an invalid encryption mode or padding error

View Source
var InvalidSrcError = func(size int) error {
	return fmt.Errorf("invalid src size %d, the src must be multiple of 16", size)
}

InvalidSrcError returns an invalid src error

View Source
var OverflowKeyError = func(size int) error {
	return fmt.Errorf("invalid key size %d, the key at least 1 byte and at most 256 bytes", size)
}

OverflowKeyError returns an overflow key error

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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