[][src]Trait rsa_export::Encode

pub trait Encode {
    fn encode_pkcs1(&self) -> Result<Vec<u8>, Box<dyn Error>>;
fn encode_pkcs8(&self) -> Result<Vec<u8>, Box<dyn Error>>; }

Trait which allows the struct it is implemented for to be encoded in the PKCS#1 and PKCS#8 format

Required methods

fn encode_pkcs1(&self) -> Result<Vec<u8>, Box<dyn Error>>

Encode in the PKCS#1 format

fn encode_pkcs8(&self) -> Result<Vec<u8>, Box<dyn Error>>

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