mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
For LUKS2 volumes, zkey generates 'cryptsetup luksFormat' commands with options '--pbkdf argon2i --pbkdf-memory 32 --pbkdf-force-iterations 4' for low memory and time requirements. Using the default Argon2i options might cause out-of-memory errors when multiple encrypted volumes are unlocked automatically at boot through /etc/crypttab. When the system runs in FIPS mode, which is indicated by file /proc/sys/crypto/fips_enabled containing '1', the Argon2i password based key derivation function might be disabled by a policy, and such 'cryptsetup luksFormat' commands might fail. Generate '--pbkdf pbkdf2' instead if the system runs in FIPS mode. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>