[][src]Enum sequoia_openpgp::parse::stream::VerificationResult

pub enum VerificationResult<'a> {
    GoodChecksum {
        sig: Signature,
        cert: &'a Cert,
        key: &'a Key<PublicParts, UnspecifiedRole>,
        binding: Option<&'a Signature>,
        revoked: RevocationStatus<'a>,
    },
    NotAlive {
        sig: Signature,
        cert: &'a Cert,
        key: &'a Key<PublicParts, UnspecifiedRole>,
        binding: Option<&'a Signature>,
        revoked: RevocationStatus<'a>,
    },
    MissingKey {
        sig: Signature,
    },
    BadChecksum {
        sig: Signature,
        cert: &'a Cert,
        key: &'a Key<PublicParts, UnspecifiedRole>,
        binding: Option<&'a Signature>,
        revoked: RevocationStatus<'a>,
    },
}

Contains the result of a signature verification.

Variants

GoodChecksum

The signature is good.

Note: A signature is considered good if it can be mathematically verified. This doesn't mean that the key that generated the signature is in anyway trustworthy in the sense that it belongs to the person or entity that the user thinks it belongs to. This can only be evaluated within a trust model, such as the web of trust (WoT).

Fields of GoodChecksum

sig: Signature

The signature.

cert: &'a Cert

The signature's issuer.

key: &'a Key<PublicParts, UnspecifiedRole>

The signing key that made the signature.

binding: Option<&'a Signature>

The signing key's binding signature.

revoked: RevocationStatus<'a>

The signing key's revocation status

NotAlive

The signature is good, but it is not alive at the specified time.

See SubpacketAreas::signature_alive for a definition of liveness.

Fields of NotAlive

sig: Signature

The signature.

cert: &'a Cert

The signature's issuer.

key: &'a Key<PublicParts, UnspecifiedRole>

The signing key that made the signature.

binding: Option<&'a Signature>

The signing key's binding signature.

revoked: RevocationStatus<'a>

The signing key's revocation status

MissingKey

Unable to verify the signature because the key is missing.

Fields of MissingKey

sig: Signature

The signature.

BadChecksum

The signature is bad.

Fields of BadChecksum

sig: Signature

The signature.

cert: &'a Cert

The signature's issuer.

key: &'a Key<PublicParts, UnspecifiedRole>

The signing key that made the signature.

binding: Option<&'a Signature>

The signing key's binding signature.

revoked: RevocationStatus<'a>

The signing key's revocation status

Methods

impl<'a> VerificationResult<'a>[src]

pub fn level(&self) -> usize[src]

Simple forwarder.

Trait Implementations

impl<'a> Debug for VerificationResult<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for VerificationResult<'a>

impl<'a> Send for VerificationResult<'a>

impl<'a> Sync for VerificationResult<'a>

impl<'a> Unpin for VerificationResult<'a>

impl<'a> !UnwindSafe for VerificationResult<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,