Files
Roger 9e9d1c531d refactor: rename identifiers and expand the browser table (#685)
Names say what each thing is: no package stutter, one word per concept, spelled out, none that differ only in case.
The browser table puts one field per line. Wire names (flags, output fields, keys.json) are unchanged.
2026-11-09 17:25:35 +08:00

15 lines
608 B
Go

package crypto
import "errors"
var (
errShortCiphertext = errors.New("ciphertext too short")
errInvalidBlockSize = errors.New("ciphertext is not a multiple of the block size")
errInvalidIVLength = errors.New("IV length must equal block size")
errInvalidPadding = errors.New("invalid PKCS5 padding")
errInvalidNonceLength = errors.New("nonce length must equal GCM nonce size")
errUnsupportedIVLength = errors.New("unsupported IV length")
errShortKey = errors.New("key is shorter than the cipher needs")
errDecodeASN1 = errors.New("failed to decode ASN1 data")
)