[][src]Trait rsa_export::Encode

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

Trait for encoding the keys

Required methods

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

Encode in the PKCS#1 format

pub 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...