Trait rsa::PublicKey [−][src]
pub trait PublicKey: EncryptionPrimitive + PublicKeyParts { fn encrypt<R: Rng>(
&self,
rng: &mut R,
padding: PaddingScheme,
msg: &[u8]
) -> Result<Vec<u8>>; fn verify(
&self,
padding: PaddingScheme,
hashed: &[u8],
sig: &[u8]
) -> Result<()>; }
Expand description
Generic trait for operations on a public key.
Required methods
Encrypt the given message.