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