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
Implementations on Foreign Types
Implements the Sign trait for ED25519
Implements the Sign trait for RSA keypairs
Implements the Sign trait for ECDSA keypairs