mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
In LUKS1 there is only one hash algorithm specification, it cannot happen, that AF hash algorithm is not available, as it is used immediately before in PBKDF2. In LUKS2 this can be completely different algorithm, so it make sense to print a visible warning for user. For example, Whirlpool and RIPEMD160 is now in OpenSSL legacy provider which can be unavailable, see #773.) This patch adds a message only, the code already fails with -EINVAL.