Trait rsa_export::Encode[][src]

pub trait Encode: Sealed {
    fn as_pkcs1(&self) -> Result<Vec<u8>, Error>;
fn as_pkcs8(&self) -> Result<Vec<u8>, Error>; }

Trait for encoding the keys

Required methods

fn as_pkcs1(&self) -> Result<Vec<u8>, Error>[src]

Encode in the PKCS#1 format

fn as_pkcs8(&self) -> Result<Vec<u8>, Error>[src]

Encode in the PKCS#8 format

Loading content...

Implementations on Foreign Types

impl Encode for RSAPrivateKey[src]

impl Encode for RSAPublicKey[src]

Loading content...

Implementors

Loading content...