Files
cryptsetup/tests
Maxim Suhanov 68d4749d8a bitlk: implement validation of FVE metadata
This commit implements FVE metadata block validation based on:
* CRC-32 (to detect random corruption);
* AES-CCM-encrypted SHA-256 (to detect malicious manipulations).

The hash-based validation requires us to decrypt the VMK first, so
it's only performed when obtaining the volume key.

This allows us to detect corrupted/altered FVE metadata blocks and
pick the valid one (before this commit: the first FVE metadata block
is always selected).

Fixes: #953

tests: add BitLocker image with corrupted headers

The image contains 2 manually corrupted metadata blocks (out of 3),
the library should use the third one to correctly load the volume.

Signed-off-by: Maxim Suhanov <dfirblog@gmail.com>
2025-08-29 15:16:36 +02:00
..
2025-05-22 14:48:56 +02:00
2025-08-19 10:57:12 +02:00
2022-01-21 12:29:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2022-11-14 21:50:18 +01:00
2024-03-07 11:30:21 +00:00
2025-05-22 14:48:56 +02:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00