BitLocker Drive Encryption

BitLocker is Microsoft’s full-volume encryption, found on Windows Pro, Enterprise and Education system, data and removable drives, and in device encryption on many laptops. It debuted with Windows Vista (2007) and is actively developed. A recovery password or key protector is needed to unlock a volume.

Overview

A BitLocker volume has its boot sector replaced by a BitLocker boot sector (signature -FVE-FS- at offset 3) pointing to three redundant FVE metadata blocks. The metadata holds a volume master key (VMK) protected by key protectors (TPM, password, recovery password, startup key) and a full volume encryption key (FVEK). Data is encrypted with AES-CBC (with or without the Elephant diffuser) or AES-XTS, depending on version and settings.

History

  • Introduced with Windows Vista (2007).
  • AES-XTS and the removal of the Elephant diffuser came with Windows 10 version 1511.

Structures

Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.

Entries

OffsetSizeTypeFieldNotes
position2u16 LE/BESize
offset + 11u8–
position + 22u16 LE/BE–
position + 42u16 LE/BE–

Looks Like Bit Locker

OffsetSizeTypeFieldNotes
0x38bytes–
0x1A816bytes–

Parse Vmk

OffsetSizeTypeFieldNotes
position + 816bytesId
position + 342u16 LEProtection

Read Fve Block

OffsetSizeTypeFieldNotes
0x08bytes–
0x82u16 LESize
0xA2u16 LEVersion
0x404u32 LEEtadata Size
size + 44u32 LEExpected

Other fields read

Read inOffsetSizeTypeFieldNotes
Decrypt Sectori * 44u32 LE–
From Startup Key0x1016bytes–
Stretch0x032bytes–
Stretch0x016bytes–
Unwrap0x02u16 LE–
Open0xC32bytes–

Constants

Bit Locker Keys

NameValueTypeNotes
StretchIterations0x100000int
KeyDataHeader12int

Bit Locker Metadata

NameValueTypeNotes
MetadataAreaSize64 * 1024int
SignatureFve“-FVE-FS-“u8.ToArray()byte[]
SignatureToGo“MSWIN4.1″u8.ToArray()byte[]
GuidNormalnew(“4967D63B-2E29-4AD8-8399-F6A339E3D001”)Guid
GuidEncryptOnWritenew(“92A84D3B-DD80-4D0E-9E4E-B1E3284EAED8”)Guid

Implementation limits

ClassNameValueNotes
Bit Locker Decrypted DeviceMaxChunkBytes1024 * 1024

Bit Locker Protection

NameValue
ClearKey0x0000
Tpm0x0100
StartupKey0x0200
TpmAndPin0x0500
RecoveryPassword0x0800
SmartCard0x1000
Password0x2000

Signatures and magic strings referenced

TextWhere checked
NTFS Read Vista Header
-FVE-FS-Describe
MSWIN4.1Describe
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.