pub trait EncodeRsaPublicKey {
// Required method
fn to_pkcs1_der(&self) -> Result<Document>;
}Expand description
Serialize a RsaPublicKey to a PKCS#1-encoded document.
Required Methods§
Sourcefn to_pkcs1_der(&self) -> Result<Document>
fn to_pkcs1_der(&self) -> Result<Document>
Serialize a Document containing a PKCS#1-encoded public key.
Implementors§
impl<T: EncodePublicKey> EncodeRsaPublicKey for T
Available on crate features
alloc and pkcs8 only.