Trait rsa_export::PemEncode [−][src]
Trait for encoding the keys and wrapping them in the PEM format
Required methods
fn as_pkcs1_pem(&self) -> Result<String, Error>
[src]
Encode in the PKCS#1 format, PEM encoded
fn as_pkcs8_pem(&self) -> Result<String, Error>
[src]
Encode in the PKCS#8 format, PEM encoded
fn as_pkcs1_pem_custom_ending(
&self,
line_ending: LineEnding
) -> Result<String, Error>
[src]
&self,
line_ending: LineEnding
) -> Result<String, Error>
Encode in the PKCS#1 format, PEM encoded with a custom line ending
fn as_pkcs8_pem_custom_ending(
&self,
line_ending: LineEnding
) -> Result<String, Error>
[src]
&self,
line_ending: LineEnding
) -> Result<String, Error>
Encode in the PKCS#8 format, PEM encoded with a custom line ending
Implementations on Foreign Types
impl PemEncode for RSAPrivateKey
[src]
fn as_pkcs1_pem(&self) -> Result<String, Error>
[src]
Line endings default to Unix-style LF
fn as_pkcs8_pem(&self) -> Result<String, Error>
[src]
Line endings default to Unix-style LF
fn as_pkcs1_pem_custom_ending(
&self,
line_ending: LineEnding
) -> Result<String, Error>
[src]
&self,
line_ending: LineEnding
) -> Result<String, Error>
Encode with a different line ending
fn as_pkcs8_pem_custom_ending(
&self,
line_ending: LineEnding
) -> Result<String, Error>
[src]
&self,
line_ending: LineEnding
) -> Result<String, Error>
Encode with a different line ending
impl PemEncode for RSAPublicKey
[src]
fn as_pkcs1_pem(&self) -> Result<String, Error>
[src]
Line endings default to Unix-style LF
fn as_pkcs8_pem(&self) -> Result<String, Error>
[src]
Line endings default to Unix-style LF
fn as_pkcs1_pem_custom_ending(
&self,
line_ending: LineEnding
) -> Result<String, Error>
[src]
&self,
line_ending: LineEnding
) -> Result<String, Error>
Encode with a different line ending
fn as_pkcs8_pem_custom_ending(
&self,
line_ending: LineEnding
) -> Result<String, Error>
[src]
&self,
line_ending: LineEnding
) -> Result<String, Error>
Encode with a different line ending