Trait tough::sign::Sign[][src]

pub trait Sign: Sync + Send {
    fn tuf_key(&self) -> Key;
fn sign(
        &self,
        msg: &[u8],
        rng: &dyn SecureRandom
    ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync + 'static>>; }
Expand description

This trait must be implemented for each type of key with which you will sign things.

Required methods

Returns the decoded key along with its scheme and other metadata

Signs the supplied message

Implementations on Foreign Types

Implements the Sign trait for ED25519

Implements the Sign trait for RSA keypairs

Implements the Sign trait for ECDSA keypairs

Implementors