#[non_exhaustive]pub enum VerificationError<'a> {
MissingKey {
sig: &'a Signature,
},
UnboundKey {
sig: &'a Signature,
cert: &'a Cert,
error: Error,
},
BadKey {
sig: &'a Signature,
ka: ValidErasedKeyAmalgamation<'a, PublicParts>,
error: Error,
},
BadSignature {
sig: &'a Signature,
ka: ValidErasedKeyAmalgamation<'a, PublicParts>,
error: Error,
},
MalformedSignature {
sig: &'a Signature,
error: Error,
},
UnknownSignature {
sig: &'a Unknown,
},
}
Expand description
A bad signature.
Represents the result of an unsuccessful signature verification. It contains all the context that could be gathered until the verification process failed.
VerificationError
is used in VerificationResult
. See also
GoodChecksum
.
You can either explicitly match on the variants, or convert to
Error
using From
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingKey
Missing Key
UnboundKey
Unbound key.
There is no valid binding signature at the time the signature was created under the given policy.
Fields
BadKey
Bad key (have a key, but it is not alive, etc.)
Fields
ka: ValidErasedKeyAmalgamation<'a, PublicParts>
The signing key that made the signature.
BadSignature
Bad signature (have a valid key, but the signature didn’t check out)
Fields
ka: ValidErasedKeyAmalgamation<'a, PublicParts>
The signing key that made the signature.
MalformedSignature
Malformed signature (no signature creation subpacket, etc.).
UnknownSignature
A signature that failed to parse at all.
Fields
sig: &'a Unknown
The signature parsed into an crate::packet::Unknown
packet.