mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Comments that restated names or narrated the code are gone, and multi-line ones are cut to a line of why. Only comments change: each edited Go file has the same token stream as before. winapi and abe come later.
15 lines
584 B
Go
15 lines
584 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")
|
|
errInvalidNonceLen = errors.New("nonce length must equal GCM nonce size")
|
|
errUnsupportedIVLen = errors.New("unsupported IV length")
|
|
errShortKey = errors.New("key is shorter than the cipher needs")
|
|
errDecodeASN1 = errors.New("failed to decode ASN1 data")
|
|
)
|