[][src]Trait pkcs8::FromPrivateKey

pub trait FromPrivateKey: Sized {
    pub fn from_pkcs8_private_key_info(
        private_key_info: PrivateKeyInfo<'_>
    ) -> Result<Self>; pub fn from_pkcs8_der(bytes: &[u8]) -> Result<Self> { ... }
pub fn from_pkcs8_pem(s: &str) -> Result<Self> { ... } }

Parse a private key object from a PKCS#8 encoded document.

Required methods

pub fn from_pkcs8_private_key_info(
    private_key_info: PrivateKeyInfo<'_>
) -> Result<Self>
[src]

Parse the PrivateKeyInfo from a PKCS#8-encoded document.

Loading content...

Provided methods

pub fn from_pkcs8_der(bytes: &[u8]) -> Result<Self>[src]

Deserialize PKCS#8-encoded private key from ASN.1 DER (binary format).

pub fn from_pkcs8_pem(s: &str) -> Result<Self>[src]

This is supported on crate feature pem only.

Deserialize PKCS#8-encoded private key from PEM.

Keys in this format begin with the following delimiter:

-----BEGIN PRIVATE KEY-----
Loading content...

Implementors

Loading content...