Trait rpm::signature::Verifying

source ·
pub trait Verifying: Debug
where Self::Signature: AsRef<[u8]>,
{ type Signature; // Required methods fn verify(&self, data: impl Read, signature: &[u8]) -> Result<(), Error>; fn algorithm(&self) -> AlgorithmType; }
Expand description

Verification trait to be implement for RPM signature verification.

Required Associated Types§

Required Methods§

source

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

source

fn algorithm(&self) -> AlgorithmType

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Verifying for PhantomData<T>

Implement unreachable verifier for the empty tuple()

§

type Signature = Vec<u8>

source§

fn verify(&self, _data: impl Read, _x: &[u8]) -> Result<(), Error>

source§

fn algorithm(&self) -> AlgorithmType

source§

impl<T, S> Verifying for &T
where T: Verifying<Signature = S>, S: AsRef<[u8]>,

§

type Signature = S

source§

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

source§

fn algorithm(&self) -> AlgorithmType

Implementors§