Trait rsa::SignatureScheme
source · pub trait SignatureScheme {
// Required methods
fn sign<Rng: CryptoRngCore, Priv: PrivateKey>(
self,
rng: Option<&mut Rng>,
priv_key: &Priv,
hashed: &[u8]
) -> Result<Vec<u8>>;
fn verify<Pub: PublicKey>(
self,
pub_key: &Pub,
hashed: &[u8],
sig: &[u8]
) -> Result<()>;
}
Expand description
Digital signature scheme.