Trait rsa_pem::KeyExt[][src]

pub trait KeyExt {
    fn to_pem_pkcs8(&self) -> Result<String, KeyError>;
fn from_pem_pkcs8(pem: &str) -> Result<Self, KeyError>
    where
        Self: Sized
;
fn to_pem_pkcs1(&self) -> Result<String, KeyError>;
fn from_pem_pkcs1(pem: &str) -> Result<Self, KeyError>
    where
        Self: Sized
; }

Extensions to keys for formatting and reading PKCS1 and PKCS8 PEM strings

Required methods

fn to_pem_pkcs8(&self) -> Result<String, KeyError>[src]

Write a PKCS8 pem string

fn from_pem_pkcs8(pem: &str) -> Result<Self, KeyError> where
    Self: Sized
[src]

Read a PKCS8 pem string

fn to_pem_pkcs1(&self) -> Result<String, KeyError>[src]

Write a PKCS1 pem string

fn from_pem_pkcs1(pem: &str) -> Result<Self, KeyError> where
    Self: Sized
[src]

Read a PKCS1 pem string

Loading content...

Implementations on Foreign Types

impl KeyExt for RSAPrivateKey[src]

impl KeyExt for RSAPublicKey[src]

Loading content...

Implementors

Loading content...