Struct pkcs8::EncryptedPrivateKeyDocument [−][src]
pub struct EncryptedPrivateKeyDocument(_);
alloc
and pkcs5
only.Expand description
Encrypted PKCS#8 private key document.
This type provides heap-backed storage for EncryptedPrivateKeyInfo
encoded as ASN.1 DER with the invariant that the contained-document is
“well-formed”, i.e. it will parse successfully according to this crate’s
parsing rules.
Implementations
This is supported on crate feature encryption
only.
encryption
only.Attempt to decrypt this encrypted private key using the provided password to derive an encryption key.
Parse the EncryptedPrivateKeyInfo
contained in this EncryptedPrivateKeyDocument
.
Parse EncryptedPrivateKeyDocument
from ASN.1 DER-encoded PKCS#8.
This is supported on crate feature pem
only.
pem
only.Parse EncryptedPrivateKeyDocument
from PEM-encoded PKCS#8.
PEM-encoded encrypted private keys can be identified by the leading delimiter:
-----BEGIN ENCRYPTED PRIVATE KEY-----
This is supported on crate feature pem
only.
pem
only.Serialize EncryptedPrivateKeyDocument
as self-zeroizing PEM-encoded
PKCS#8 string.
This is supported on crate feature std
only.
std
only.Load EncryptedPrivateKeyDocument
from an ASN.1 DER-encoded file on
the local filesystem (binary format).
This is supported on crate features pem
and std
only.
pem
and std
only.Load EncryptedPrivateKeyDocument
from a PEM-encoded file on the
local filesystem.
This is supported on crate feature std
only.
std
only.Write ASN.1 DER-encoded PKCS#8 encrypted private key to the given path.
Trait Implementations
Performs the conversion.
Performs the conversion.
pem
only.This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EncryptedPrivateKeyDocument
impl Send for EncryptedPrivateKeyDocument
impl Sync for EncryptedPrivateKeyDocument
impl Unpin for EncryptedPrivateKeyDocument
impl UnwindSafe for EncryptedPrivateKeyDocument
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self