Trait Encode

Source
pub trait Encode: Sealed {
    // Required methods
    fn as_pkcs1(&self) -> Result<Vec<u8>, Error>;
    fn as_pkcs8(&self) -> Result<Vec<u8>, Error>;
}
Expand description

Trait for encoding the keys

Required Methods§

Source

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

Encode in the PKCS#1 format

Source

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

Encode in the PKCS#8 format

Implementations on Foreign Types§

Source§

impl Encode for RSAPrivateKey

Source§

impl Encode for RSAPublicKey

Implementors§