Trait rpm::signature::Signing

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

Signing trait to be implement for RPM signing.

Required Associated Types§

Required Methods§

source

fn sign(&self, data: impl Read, t: Timestamp) -> Result<Self::Signature, Error>

source

fn algorithm(&self) -> AlgorithmType

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Signing for PhantomData<T>

Implement unreachable signer for empty tuple ()

§

type Signature = Vec<u8>

source§

fn sign( &self, _data: impl Read, _t: Timestamp, ) -> Result<Self::Signature, Error>

source§

fn algorithm(&self) -> AlgorithmType

source§

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

§

type Signature = S

source§

fn sign(&self, data: impl Read, t: Timestamp) -> Result<Self::Signature, Error>

source§

fn algorithm(&self) -> AlgorithmType

Implementors§