Re-exports§
pub use hash::HASH_SHA256;pub use hash::HASH_SHA512;pub use hash::LUKS2_CHECKSUM_ALG_ID_LEN;pub use hash::Luks2HashAlg;pub use hash::SHA256_DIGEST_SIZE;pub use hash::SHA512_DIGEST_SIZE;pub use kdf::Luks2Kdf;pub use key::UnlockKey;pub use key::VolumeKey;
Modules§
Structs§
- Luks2Af
- Anti-forensic (AF) settings for a keyslot.
- Luks2
Config - Global configuration for a LUKS2 device.
- Luks2
Header - The primary binary header for LUKS2.
- Luks2
Metadata - The complete LUKS2 metadata, typically stored in the JSON area of the header.
- Luks2
U64 - A 64-bit unsigned integer that is represented as a decimal string in JSON.
- Luks
Device Uuid - A LUKS device UUID.
Enums§
- Luks2
AfType - The type of anti-forensic (AF) algorithm used in LUKS2.
- Luks2
Area - A keyslot data area in LUKS2.
- Luks2
Area Encryption - The encryption algorithm used for the keyslot area.
- Luks2
Digest - A LUKS2 digest, used to verify the volume key.
- Luks2
KeySize - The size of a LUKS2 key in bytes.
- Luks2
Keyslot - A LUKS2 keyslot.
- Luks2
Keyslot Priority - The priority of a LUKS2 keyslot.
- Luks2
Reencrypt Direction - The direction of a reencryption operation.
- Luks2
Reencrypt Mode - The mode of a reencryption operation.
- Luks2
Segment - A LUKS2 segment, representing a range of data on the device.
- Luks2
Segment Size - The size of a LUKS2 segment.
- Luks2
Token - A LUKS2 token, used to store additional metadata or references to external keys.
- Luks
Error - Errors that can occur when working with LUKS devices.
- Luks
Header - A LUKS header, either version 1 or 2.
Constants§
- AES128_
KEY_ SIZE - The key size for AES-128 in bytes.
- AES256_
KEY_ SIZE - The key size for AES-256 in bytes.
- AES_
BLOCK_ SIZE - The block size for the AES cipher in bytes.
- KDF_
SALT_ SIZE - The size of a KDF salt in bytes.
- LUKS1_
AF_ STRIPES - The number of anti-forensic stripes used by the LUKS1 AF feature.
- LUKS2_
BINARY_ HEADER_ SIZE - The size of the LUKS2 binary header area in bytes.
- LUKS2_
CHECKSUM_ OFFSET - The offset in bytes where the LUKS2 checksum field begins.
- LUKS2_
CHECKSUM_ SIZE - Size of the LUKS2 checksum field in bytes.
- LUKS2_
DEFAULT_ JSON_ SIZE - Default size of the LUKS2 JSON area in bytes.
- LUKS2_
DEFAULT_ KEYSLOTS_ SIZE - Default size of the LUKS2 keyslots area in bytes.
- LUKS2_
LABEL_ SIZE - Size of the LUKS2 label field in bytes.
- LUKS2_
SALT_ SIZE - Size of the LUKS2 salt field in bytes.
- LUKS2_
SUBSYSTEM_ SIZE - Size of the LUKS2 subsystem field in bytes.
- LUKS2_
UUID_ SIZE - Size of the LUKS2 uuid field in bytes.
- LUKS_
MAGIC - The magic signature for LUKS devices: “LUKS\xBA\xBE”.
- LUKS_
MAGIC_ SIZE - Size of the LUKS magic signature in bytes.
- LUKS_
VERSION_ SIZE - Size of the LUKS version field in bytes.
- SECTOR_
SIZE - The standard sector size in bytes.