Trait tame_gcs::signing::Signer[][src]

pub trait Signer {
    fn sign(
        &self,
        algorithm: SigningAlgorithm,
        key: Key<'_>,
        data: &[u8]
    ) -> Result<Vec<u8>, Error>; }

Used to sign a block of data

Required methods

fn sign(
    &self,
    algorithm: SigningAlgorithm,
    key: Key<'_>,
    data: &[u8]
) -> Result<Vec<u8>, Error>
[src]

Sign a block of data with the specified algorith, and a private key

Loading content...

Implementors

Loading content...