mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
Allow to use backup header for tcrypt format.
TrueCrypt/VeraCrypt supports backup header, it seems to have the same format as normal header. Let's use --header option here, it can be used to unlock data partition with header backup (open and dump commands). Fixes: #587.
This commit is contained in:
@@ -657,7 +657,7 @@ int crypt_set_data_device(struct crypt_device *cd, const char *device)
|
||||
log_dbg(cd, "Setting ciphertext data device to %s.", device ?: "(none)");
|
||||
|
||||
if (!isLUKS1(cd->type) && !isLUKS2(cd->type) && !isVERITY(cd->type) &&
|
||||
!isINTEGRITY(cd->type)) {
|
||||
!isINTEGRITY(cd->type) && !isTCRYPT(cd->type)) {
|
||||
log_err(cd, _("This operation is not supported for this device type."));
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -845,11 +845,6 @@ static int _crypt_load_tcrypt(struct crypt_device *cd, struct crypt_params_tcryp
|
||||
if (!params)
|
||||
return -EINVAL;
|
||||
|
||||
if (cd->metadata_device) {
|
||||
log_err(cd, _("Detached metadata device is not supported for this crypt type."));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
r = init_crypto(cd);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user