Skip to main content

Crate luks

Crate luks 

Source

Re-exports§

pub use kdf::derive_key;
pub use key::Key;

Modules§

af
kdf
key

Structs§

Luks2Af
Luks2Config
Luks2Header
Luks2Metadata
Luks2U64
A 64-bit unsigned integer that is represented as a decimal string in JSON.
LuksUuid
A LUKS device UUID.

Enums§

Luks2AfType
Luks2Area
Luks2AreaEncryption
Luks2Digest
Luks2Kdf
Luks2KeySize
Luks2Keyslot
Luks2KeyslotPriority
The priority of a LUKS2 keyslot.
Luks2ReencryptDirection
Luks2ReencryptMode
Luks2Segment
Luks2SegmentSize
Luks2Token
LuksError
LuksHeader

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.
HASH_SHA256
SHA-256 hash algorithm identifier.
HASH_SHA512
SHA-512 hash algorithm identifier.
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_ALG_SIZE
Size of the LUKS2 checksum algorithm field 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.
SHA256_DIGEST_SIZE
The size of a SHA-256 digest in bytes.
SHA512_DIGEST_SIZE
The size of a SHA-512 digest in bytes.