[][src]Trait rpm::signature::Signing

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

Signing trait to be implement for RPM signing.

Associated Types

Loading content...

Required methods

fn sign<R: Read>(&self, data: R) -> Result<Self::Signature, RPMError>

Loading content...

Implementations on Foreign Types

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

type Signature = S

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

Implement unreachable signer for empty tuple ()

type Signature = Vec<u8>

Loading content...

Implementors

impl Signing<RSA> for Signer[src]

type Signature = Vec<u8>

fn sign<R: Read>(&self, data: R) -> Result<Self::Signature, 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...