pub enum Error {
Show 35 variants
Io(Error),
InvalidKeyLength,
UnsupportedPkAlgo,
UnsupportedKdfAlgo,
FileTooShort,
FileTooLarge,
InvalidCommentHeader,
InvalidCommentUtf8,
PasswordMismatch,
PasswordReadFailed,
IncorrectPassphrase,
MissingPubKey,
KeyMismatch,
VerifyFailed,
AutolocateFailed(PathBuf, Box<Error>),
InvalidKeyName,
InvalidPath,
CheckFailed,
Overflow,
Base64Decode(Error),
Arg(Error),
InvalidSignatureLength,
MissingGzipHeader,
MissingGzipSignature,
MissingSignatureNewline,
KeyringDisabled,
InvalidKeyId,
RequiredArg(&'static str),
MissingMode,
InvalidSignatureUtf8,
Keyring(KeyError),
Crypto(Error),
Rng(OsError),
Nix(Errno),
Landlock(RulesetError),
}Expand description
Custom Error type for Signify operations.
Variants§
Io(Error)
I/O error.
InvalidKeyLength
Key length is invalid.
UnsupportedPkAlgo
Unsupported public key algorithm (expected Ed).
UnsupportedKdfAlgo
Unsupported KDF algorithm (expected BK).
FileTooShort
File is too short.
FileTooLarge
File is too large (exceeds 1GB limit for embedded verification).
InvalidCommentHeader
Invalid comment header (expected “untrusted comment: …”).
InvalidCommentUtf8
Invalid comment (not utf8)
PasswordMismatch
Password confirmation failed.
PasswordReadFailed
Failed to read password.
IncorrectPassphrase
Incorrect passphrase (checksum mismatch).
MissingPubKey
Missing public key (no comment or autolocate failed).
KeyMismatch
Key fingerprint mismatch.
VerifyFailed
Signature verification failed.
AutolocateFailed(PathBuf, Box<Error>)
Autolocate failed to find the key.
InvalidKeyName
Key name compliance check failed.
InvalidPath
Path does not contain a filename.
CheckFailed
Checksum verification failed.
Overflow
Integer overflow.
Base64Decode(Error)
Base64 decoding failed.
Arg(Error)
Argument parsing error.
InvalidSignatureLength
Invalid signature length.
MissingGzipHeader
Missing Gzip header.
MissingGzipSignature
Missing signature in Gzip comment.
MissingSignatureNewline
Missing newline in signature.
KeyringDisabled
Keyring support is disabled.
InvalidKeyId
Invalid key ID.
RequiredArg(&'static str)
Required argument missing.
MissingMode
Mode not specified.
InvalidSignatureUtf8
Invalid UTF-8 in signature.
Keyring(KeyError)
Keyring error.
Crypto(Error)
Cryptographic error (e.g., invalid key format).
Rng(OsError)
RNG error.
Nix(Errno)
UNIX error.
Landlock(RulesetError)
Landlock error.