[][src]Trait sequoia_openpgp::parse::stream::VerificationHelper

pub trait VerificationHelper {
    fn get_public_keys(&mut self, _: &[KeyHandle]) -> Result<Vec<Cert>>;
fn check(&mut self, structure: &MessageStructure) -> Result<()>; }

Helper for signature verification.

Required methods

fn get_public_keys(&mut self, _: &[KeyHandle]) -> Result<Vec<Cert>>

Retrieves the Certs containing the specified keys.

fn check(&mut self, structure: &MessageStructure) -> Result<()>

Conveys the message structure.

The message structure contains the results of signature verifications. See MessageStructure for more information.

This is called after the last signature has been verified. This is the place to implement your verification policy. Check that the required number of signatures or notarizations were confirmed as valid.

This callback is only called before all data is returned. That is, once io::Read returns EOF, this callback will not be called again. As such, any error returned by this function will abort reading, and the error will be propagated via the io::Read operation.

Loading content...

Implementors

Loading content...