pub trait AsymmetricEncryptable {
// Required method
fn to_public_key(&self) -> &RsaPublicKey;
}
Expand description
Trait to allow both AsymmetricCryptoKey
and AsymmetricPublicCryptoKey
to be used to
encrypt AsymmetricEncString.
pub trait AsymmetricEncryptable {
// Required method
fn to_public_key(&self) -> &RsaPublicKey;
}
Trait to allow both AsymmetricCryptoKey
and AsymmetricPublicCryptoKey
to be used to
encrypt AsymmetricEncString.