pub enum Error {
Show 19 variants
NoSignature,
UnsupportedAsymmetricAlgo,
CertCannotEncrypt,
KeyCannotSign,
MissingArg,
IncompleteVerification,
CannotDecrypt,
PasswordNotHumanReadable,
UnsupportedOption,
BadData,
ExpectedText,
OutputExists,
MissingInput,
KeyIsProtected,
AmbiguousInput,
IncompatibleOptions,
NotImplemented,
UnsupportedProfile,
IoError(Error),
}Expand description
SOP errors.
These are the errors defined by the Stateless OpenPGP Protocol.
Variants§
NoSignature
No acceptable signatures found (“sop verify”).
UnsupportedAsymmetricAlgo
Asymmetric algorithm unsupported (“sop encrypt”).
CertCannotEncrypt
Certificate not encryption-capable (e.g., expired, revoked, unacceptable usage flags) (“sop encrypt”).
KeyCannotSign
Key not signature-capable (e.g., expired, revoked,
unacceptable usage flags) (sop sign and sop encrypt with
--sign-with).
MissingArg
Missing required argument.
IncompleteVerification
Incomplete verification instructions (“sop decrypt”).
CannotDecrypt
Unable to decrypt (“sop decrypt”).
PasswordNotHumanReadable
Non-“UTF-8” or otherwise unreliable password (“sop encrypt”).
UnsupportedOption
Unsupported option.
BadData
Invalid data type (no secret key where “KEY” expected, etc).
ExpectedText
Non-text input where text expected.
OutputExists
Output file already exists.
MissingInput
Input file does not exist.
KeyIsProtected
A “KEY” input is protected (locked) with a password, and “sop” cannot unlock it with any of the –with-key-password options.
AmbiguousInput
A indirect input parameter is a special designator (it starts with “@”), and a filename matching the designator is actually present.
IncompatibleOptions
Options were supplied that are incompatible with each other.
NotImplemented
Operation not implemented.
UnsupportedProfile
The requested profile is unsupported (sop generate-key, sop encrypt), or the indicated subcommand does not accept profiles (sop list-profiles).
IoError(Error)
An IO error occurred.