dissect.fve.luks.metadata

Module Contents

Classes

class dissect.fve.luks.metadata.JsonItem
classmethod from_json(obj: str) JsonItem
classmethod from_dict(obj: dict[str, str | int | dict | list]) JsonItem
class dissect.fve.luks.metadata.Config

Bases: JsonItem

json_size: int
keyslots_size: int | None
flags: list[str] | None
requirements: list[str] | None
class dissect.fve.luks.metadata.KeyslotArea

Bases: JsonItem

type: str
offset: int
size: int
encryption: str | None
key_size: int | None
hash: str | None
sector_size: int | None
shift_size: int | None
class dissect.fve.luks.metadata.KeyslotKdf

Bases: JsonItem

type: str
salt: bytes
hash: str | None
iterations: int | None
time: int | None
memory: int | None
cpus: int | None
class dissect.fve.luks.metadata.KeyslotAf

Bases: JsonItem

type: str
stripes: int | None
hash: str | None
class dissect.fve.luks.metadata.Keyslot

Bases: JsonItem

type: str
key_size: int
area: KeyslotArea
priority: int | None
kdf: KeyslotKdf | None
af: KeyslotAf | None
mode: str | None
direction: str | None
class dissect.fve.luks.metadata.Digest

Bases: JsonItem

type: str
keyslots: list[int]
segments: list[int]
salt: bytes
digest: bytes
hash: str | None
iterations: int | None
class dissect.fve.luks.metadata.SegmentIntegrity

Bases: JsonItem

type: str
journal_encryption: str
journal_integrity: str
class dissect.fve.luks.metadata.Segment

Bases: JsonItem

type: str
offset: int
size: int | str
flags: list[str] | None
iv_tweak: int | None
encryption: str | None
sector_size: int | None
integrity: SegmentIntegrity | None
class dissect.fve.luks.metadata.Token

Bases: JsonItem

type: str
keyslots: list[int]
class dissect.fve.luks.metadata.Metadata

Bases: JsonItem

config: Config
keyslots: dict[int, Keyslot]
digests: dict[int, Digest]
segments: dict[int, Segment]
tokens: dict[int, Token]
classmethod from_luks1_header(header: dissect.fve.luks.c_luks.c_luks.luks_phdr) Metadata

Map LUKS1 header information into a Metadata dataclass.