mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fallback to default keyslot algorithm if backend does not know the cipher.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user