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

This commit is contained in:
Milan Broz
2018-11-17 11:10:56 +01:00
parent 0a4bd8cb7d
commit da6dbbd433

View File

@@ -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;
}