[][src]Trait rpm::signature::Verifying

pub trait Verifying<A>: Debug where
    A: Algorithm,
    Self::Signature: AsRef<[u8]>, 
{ type Signature; fn verify<R: Read>(&self, data: R, signature: &[u8]) -> Result<(), RPMError>; }

Verification trait to be implement for RPM signature verification.

Associated Types

Loading content...

Required methods

fn verify<R: Read>(&self, data: R, signature: &[u8]) -> Result<(), RPMError>

Loading content...

Implementations on Foreign Types

impl<A, T, S, '_> Verifying<A> for &'_ T where
    T: Verifying<A, Signature = S>,
    A: Algorithm,
    S: AsRef<[u8]>, 
[src]

type Signature = S

impl<A> Verifying<A> for PhantomData<A> where
    A: Algorithm
[src]

Implement unreachable verifier for the empty tuple()

type Signature = Vec<u8>

Loading content...

Implementors

impl Verifying<RSA> for Verifier[src]

type Signature = Vec<u8>

fn verify<R: Read>(&self, data: R, signature: &[u8]) -> Result<(), RPMError>[src]

Despite the fact the API suggest zero copy pattern, it internally creates a copy until crate pgp provides a Read based implementation.

Loading content...