os-brick/os_brick/encryptors
Lee Yarwood 6a01bacda7 encryptors: Introduce support for LUKS2
LUKS2 support was introduced into cryptsetup 2.0.0 [1] and offers various
improvements over the original format now referred to as LUKS1.

This change introduces an encryptor to os-brick mostly using the
existing LuksEncryptor class with the only difference being the `--type`
switch supplied to cryptsetup when formatting a volume. As such the bulk
of the _format_volume method from the original class has been extracted
into a new _format_luks_volume method both the original and new
Luks2Encryptor class can now reuse.

[1] https://www.saout.de/pipermail/dm-crypt/2017-December/005771.html

Change-Id: I09fb2b2be1e376f8ec0f49741c855cfd54ee27f0
2019-09-03 18:44:41 +00:00
..
__init__.py encryptors: Introduce support for LUKS2 2019-09-03 18:44:41 +00:00
base.py Stop ignoring H405 hacking rule in tox 2017-05-24 00:44:57 +02:00
cryptsetup.py encryptors: Deprecate the CryptsetupEncryptor 2019-08-22 18:23:08 -04:00
luks.py encryptors: Introduce support for LUKS2 2019-09-03 18:44:41 +00:00
nop.py Add missing params in NoOpEncryptor 2019-01-22 14:23:43 +08:00