Struct sequoia_openpgp::packet::key::Encrypted[][src]

pub struct Encrypted { /* fields omitted */ }
Expand description

Secret key material encrypted with a password.

This data structure is used by the SecretKeyMaterial enum.

Implementations

Creates a new encrypted key object.

Returns the key derivation mechanism.

Returns the symmetric algorithm used to encrypt the secret key material.

Returns the checksum method used to protect the encrypted secret key material, if any.

Returns the encrypted secret key material.

If the S2K mechanism is not supported by Sequoia, this function will fail. Note that the information is not lost, but stored in the packet. If the packet is serialized again, it is written out.

Decrypts the secret key material using password.

The Encrypted key does not know what kind of key it is, so the public key algorithm is needed to parse the correct number of MPIs.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.