mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
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.
15 lines
608 B
Go
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")
|
|
)
|