[][src]Trait rpm::crypto::Signing

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

Signing trait to be implement for RPM signing.

Associated Types

Loading content...

Required methods

fn sign(&self, data: &[u8]) -> 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>

Loading content...