Commit da6dbbd4 authored by Milan Broz's avatar Milan Broz

Fallback to default keyslot algorithm if backend does not know the cipher.

parent 0a4bd8cb
......@@ -123,6 +123,10 @@ int LUKS2_keyslot_cipher_incompatible(struct crypt_device *cd)
if (crypt_cipher_wrapped_key(cipher))
return 1;
/* Check if crypto backend can use the cipher */
if (crypt_cipher_blocksize(cipher) < 0)
return 1;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment