mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Crypto stays free of OS calls, so every secret-store read sits behind one masterkey contract. The macOS v10 retriever reads one run-scoped login keychain handle that Safari will share.
15 lines
552 B
Go
15 lines
552 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")
|
|
)
|