Struct ipfs_embed::identity::rsa::Keypair
pub struct Keypair(_);
Expand description
An RSA keypair.
Implementations§
§impl Keypair
impl Keypair
pub 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.