Do not try to activate BitLocker devices with diffuser

The CBC mode with Elephant Diffuser is currently not supported
by DM crypt.
This commit is contained in:
Vojtěch Trefný
2019-10-24 13:48:16 +02:00
committed by Milan Broz
parent 966ba44a33
commit 9932b5fc5c

View File

@@ -891,6 +891,13 @@ int BITLK_activate(struct crypt_device *cd,
return r;
}
if (strcmp(params->cipher_mode, "cbc-elephant") == 0) {
log_err(cd, _("Activation of BitLocker devices encrypted using AES-CBC with " \
"the Elephant Diffuser is currently not supported"));
crypt_free_volume_key(open_fvek_key);
return -ENOTSUP;
}
r = device_block_adjust(cd, crypt_data_device(cd), DEV_EXCL,
crypt_get_data_offset(cd), &dmd.size, &dmd.flags);
if (r) {