Enum sequoia_openpgp::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 27 variants
InvalidArgument(String),
InvalidOperation(String),
MalformedPacket(String),
PacketTooLarge(Tag, u32, u32),
UnsupportedPacketType(Tag),
UnsupportedHashAlgorithm(HashAlgorithm),
UnsupportedPublicKeyAlgorithm(PublicKeyAlgorithm),
UnsupportedEllipticCurve(Curve),
UnsupportedSymmetricAlgorithm(SymmetricAlgorithm),
UnsupportedAEADAlgorithm(AEADAlgorithm),
UnsupportedCompressionAlgorithm(CompressionAlgorithm),
UnsupportedSignatureType(SignatureType),
InvalidPassword,
InvalidSessionKey(String),
MissingSessionKey(String),
MalformedMPI(String),
BadSignature(String),
ManipulatedMessage,
MalformedMessage(String),
MalformedCert(String),
UnsupportedCert(String),
IndexOutOfRange,
Expired(SystemTime),
NotYetLive(SystemTime),
NoBindingSignature(SystemTime),
InvalidKey(String),
PolicyViolation(String, Option<SystemTime>),
}Expand description
Errors used in this crate.
Note: This enum cannot be exhaustively matched to allow future extensions.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InvalidArgument(String)Invalid argument.
Tuple Fields of InvalidArgument
0: StringInvalidOperation(String)Invalid operation.
Tuple Fields of InvalidOperation
0: StringMalformedPacket(String)A malformed packet.
Tuple Fields of MalformedPacket
0: StringPacket size exceeds the configured limit.
UnsupportedPacketType(Tag)Unsupported packet type.
Tuple Fields of UnsupportedPacketType
0: TagUnsupportedHashAlgorithm(HashAlgorithm)Unsupported hash algorithm identifier.
Tuple Fields of UnsupportedHashAlgorithm
UnsupportedPublicKeyAlgorithm(PublicKeyAlgorithm)Unsupported public key algorithm identifier.
Tuple Fields of UnsupportedPublicKeyAlgorithm
UnsupportedEllipticCurve(Curve)Unsupported elliptic curve ASN.1 OID.
Tuple Fields of UnsupportedEllipticCurve
0: CurveUnsupportedSymmetricAlgorithm(SymmetricAlgorithm)Unsupported symmetric key algorithm.
Tuple Fields of UnsupportedSymmetricAlgorithm
UnsupportedAEADAlgorithm(AEADAlgorithm)Unsupported AEAD algorithm.
Tuple Fields of UnsupportedAEADAlgorithm
UnsupportedCompressionAlgorithm(CompressionAlgorithm)Unsupported Compression algorithm.
Tuple Fields of UnsupportedCompressionAlgorithm
UnsupportedSignatureType(SignatureType)Unsupported signature type.
Tuple Fields of UnsupportedSignatureType
Invalid password.
InvalidSessionKey(String)Invalid session key.
Tuple Fields of InvalidSessionKey
0: StringMissingSessionKey(String)Missing session key.
Tuple Fields of MissingSessionKey
0: StringMalformedMPI(String)Malformed MPI.
Tuple Fields of MalformedMPI
0: StringBadSignature(String)Bad signature.
Tuple Fields of BadSignature
0: StringMessage has been manipulated.
MalformedMessage(String)Malformed message.
Tuple Fields of MalformedMessage
0: StringMalformedCert(String)Malformed certificate.
Tuple Fields of MalformedCert
0: StringUnsupportedCert(String)Unsupported Cert.
This usually occurs, because the primary key is in an unsupported format. In particular, Sequoia does not support version 3 keys.
Tuple Fields of UnsupportedCert
0: StringIndex out of range.
Expired(SystemTime)Expired.
Tuple Fields of Expired
0: SystemTimeNotYetLive(SystemTime)Not yet live.
Tuple Fields of NotYetLive
0: SystemTimeNoBindingSignature(SystemTime)No binding signature.
Tuple Fields of NoBindingSignature
0: SystemTimeInvalidKey(String)Invalid key.
Tuple Fields of InvalidKey
0: StringPolicyViolation(String, Option<SystemTime>)The operation is not allowed, because it violates the policy.
The optional time is the time at which the operation was determined to no longer be secure.
Tuple Fields of PolicyViolation
0: String1: Option<SystemTime>Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more