When the kernel backend is used, the current tests do not meat the minimum requirements. In particular: CONFIG_CRYPTO_SHA1/SHA256 is needed (for backend checks), CONFIG_CRYPTO_USER_API, CONFIG_CRYPTO_USER_API_HASH and CONFIG_CRYPTO_USER_API_SKCIPHER are needed for the kernel backend (skcipher just lately). For LUKS CONFIG_CRYPTO_HMAC is needed (for key derivation. Reproducible: Always Steps to Reproduce: n/a Actual Results: Necessary checks for kernel backend are currently omitted. Expected Results: A more thoroughly set of tests to ensure requirements are met.
the unittests should just mark themselves as SKIP when the kernel features are unavailable
I can confirm that all cryptsetup versions which are in portage now, crashing without CONFIG_CRYPTO_USER_API_HASH enabled in kernel with message "Cannot initialize crypto backend". This has not been required in older versions.