mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add bitlk.c to translation.
This commit is contained in:
@@ -426,13 +426,13 @@ int BITLK_read_sb(struct crypt_device *cd, struct bitlk_metadata *params)
|
|||||||
/* read and check the BitLocker signature */
|
/* read and check the BitLocker signature */
|
||||||
if (read_lseek_blockwise(devfd, device_block_size(cd, device),
|
if (read_lseek_blockwise(devfd, device_block_size(cd, device),
|
||||||
device_alignment(device), &sig, sizeof(sig), 0) != sizeof(sig)) {
|
device_alignment(device), &sig, sizeof(sig), 0) != sizeof(sig)) {
|
||||||
log_err(cd, _("Failed to read bitlocker signature from %s."), device_path(device));
|
log_err(cd, _("Failed to read BitLocker signature from %s."), device_path(device));
|
||||||
r = -EINVAL;
|
r = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(sig.boot_code, BITLK_BOOTCODE_V1, sizeof(sig.boot_code)) == 0) {
|
if (memcmp(sig.boot_code, BITLK_BOOTCODE_V1, sizeof(sig.boot_code)) == 0) {
|
||||||
log_err(cd, _("BitLocker version from Windows Vista is currently not supported"));
|
log_err(cd, _("BitLocker version from Windows Vista is currently not supported."));
|
||||||
r = -ENOTSUP;
|
r = -ENOTSUP;
|
||||||
goto out;
|
goto out;
|
||||||
} else if (memcmp(sig.boot_code, BITLK_BOOTCODE_V2, sizeof(sig.boot_code)) == 0)
|
} else if (memcmp(sig.boot_code, BITLK_BOOTCODE_V2, sizeof(sig.boot_code)) == 0)
|
||||||
@@ -518,7 +518,7 @@ int BITLK_read_sb(struct crypt_device *cd, struct bitlk_metadata *params)
|
|||||||
params->cipher_mode = "xts-plain64";
|
params->cipher_mode = "xts-plain64";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log_err (cd, _("Unknown or unsupported encryption"));
|
log_err(cd, _("Unknown or unsupported encryption."));
|
||||||
params->key_size = 0;
|
params->key_size = 0;
|
||||||
params->cipher = NULL;
|
params->cipher = NULL;
|
||||||
params->cipher_mode = NULL;
|
params->cipher_mode = NULL;
|
||||||
@@ -957,7 +957,7 @@ int BITLK_activate(struct crypt_device *cd,
|
|||||||
while (next_vmk) {
|
while (next_vmk) {
|
||||||
if (next_vmk->protection == BITLK_PROTECTION_CLEAR_KEY) {
|
if (next_vmk->protection == BITLK_PROTECTION_CLEAR_KEY) {
|
||||||
crypt_free_volume_key(open_fvek_key);
|
crypt_free_volume_key(open_fvek_key);
|
||||||
log_err(cd, _("Activation of partially decrypted BitLocker devices is not supported."));
|
log_err(cd, _("Activation of partially decrypted BitLocker device is not supported."));
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
}
|
}
|
||||||
next_vmk = next_vmk->next;
|
next_vmk = next_vmk->next;
|
||||||
@@ -1025,7 +1025,7 @@ int BITLK_activate(struct crypt_device *cd,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if (num_segments == 10) {
|
if (num_segments == 10) {
|
||||||
log_err(cd, "Failed to calculate number of dm-crypt segments for open.");
|
log_dbg(cd, "Failed to calculate number of dm-crypt segments for open.");
|
||||||
r = -EINVAL;
|
r = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ lib/luks1/keyencryption.c
|
|||||||
lib/luks1/keymanage.c
|
lib/luks1/keymanage.c
|
||||||
lib/loopaes/loopaes.c
|
lib/loopaes/loopaes.c
|
||||||
lib/tcrypt/tcrypt.c
|
lib/tcrypt/tcrypt.c
|
||||||
|
lib/bitlk/bitlk.c
|
||||||
lib/verity/verity.c
|
lib/verity/verity.c
|
||||||
lib/verity/verity_hash.c
|
lib/verity/verity_hash.c
|
||||||
lib/verity/verity_fec.c
|
lib/verity/verity_fec.c
|
||||||
|
|||||||
Reference in New Issue
Block a user