Trait pkcs1::EncodeRsaPublicKey

source ·
pub trait EncodeRsaPublicKey {
    // Required method
    fn to_pkcs1_der(&self) -> Result<Document>;

    // Provided method
    fn to_pkcs1_pem(&self, line_ending: LineEnding) -> Result<String> { ... }
}
Expand description

Serialize a RsaPublicKey to a PKCS#1-encoded document.

Required Methods§

source

fn to_pkcs1_der(&self) -> Result<Document>

Serialize a Document containing a PKCS#1-encoded public key.

Provided Methods§

source

fn to_pkcs1_pem(&self, line_ending: LineEnding) -> Result<String>

Serialize this public key as PEM-encoded PKCS#1 with the given line ending.

Implementors§