Struct libp2p_core::identity::rsa::Keypair
source · pub struct Keypair(_);
Available on crate feature
rsa
and non-WebAssembly only.Expand description
An RSA keypair.
Implementations§
source§impl Keypair
impl Keypair
sourcepub fn from_pkcs8(der: &mut [u8]) -> Result<Keypair, DecodingError>
pub fn from_pkcs8(der: &mut [u8]) -> Result<Keypair, DecodingError>
Decode an RSA keypair from a DER-encoded private key in PKCS#8 PrivateKeyInfo format (i.e. unencrypted) as defined in RFC5208.