mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
410bffe643
* refactor: naming cleanup across all packages
16 lines
679 B
Go
16 lines
679 B
Go
package crypto
|
|
|
|
import "errors"
|
|
|
|
// Sentinel errors for crypto operations.
|
|
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")
|
|
errDecodeASN1 = errors.New("failed to decode ASN1 data")
|
|
errDPAPINotSupported = errors.New("DPAPI not supported on this platform") //nolint:unused // used on darwin/linux only
|
|
)
|