pub struct CryptContext<'a> { /* private fields */ }
Expand description

Cryptographic context for device

Implementations

Format and encrypt the given device with the requested encryption algorithm and key or key length.

For volume_key parameter, either the volume key or the desired length of the generated volume key can be specified.

For the volume_key parameter, the value in Either::Right must be in units of bytes. For a common key length such as 512 bits, the value passed to the Either::Right variant would be 512 / 8.

Convert to new format type

Set UUID of crypt device

Set LUKS2 device label

Set policty on loading volume keys via kernel keyring

Load on-disk header parameters based on provided type

Repair crypt device header if invalid

Resize crypt device

Suspend crypt device

Resume crypt device using a passphrase

Resume crypt device using a key file at an offset on disk

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.

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.