Enum pretty_good::KeyMaterial
[−]
[src]
pub enum KeyMaterial { Rsa(RsaPublicKey, Option<RsaPrivateKey>), Dsa(DsaPublicKey, Option<DsaPrivateKey>), Elgamal(ElgamalPublicKey, Option<ElgamalPrivateKey>), }
Variants
Rsa(RsaPublicKey, Option<RsaPrivateKey>)
Dsa(DsaPublicKey, Option<DsaPrivateKey>)
Elgamal(ElgamalPublicKey, Option<ElgamalPrivateKey>)
Methods
impl KeyMaterial
[src]
pub fn public_to_bytes(&self) -> Result<Vec<u8>, Error>
[src]
pub fn private_to_bytes(&self) -> Result<Vec<u8>, Error>
[src]
Trait Implementations
impl Clone for KeyMaterial
[src]
fn clone(&self) -> KeyMaterial
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more