Cryptsetup - combine metadata about LUKS devices

Combine outputs of LuksDump and LuksMeta parsers (with the same UUID) into a single dictionary.

class insights.combiners.cryptsetup.LuksDevices(luks_dumps, luks_metas)[source]

Bases: list

Combiner for LUKS encrypted devices information. It uses the results of the LuksDump and LuksMeta parser (they are matched based UUID of the device they were collected from).

Examples

>>> luks_devices[0]["header"]["Version"]
'1'
>>> "luksmeta" in luks_devices[0]
True
>>> "luksmeta" in luks_devices[1]
False
>>> luks_devices[0]["luksmeta"][0]
Keyslot on index 0 is 'active' with no embedded metadata