WD Hardware Encryption (My Passport)

Western Digital’s My Passport and similar external drives encrypt with AES in a USB bridge chip, with a key wrapped by the user’s password. The drive appears as an ordinary disk once unlocked, and recovery needs the password or a working bridge.

Overview

WD My Passport drives encrypt data in a USB bridge controller using AES with a data encryption key stored in the bridge. A password protects the key; the drive presents a locked partition until the key is unlocked. Recovery depends on retrieving the key material and deriving the key from the user password.

History

  • Offered on several generations of WD My Passport drives.

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.

J Micron

OffsetSizeTypeFieldNotes
i + 11u8–
i + 21u8–
i + 31u8–
i + 1216bytesDek
i + 3216bytesDek
i + 881u8Key Size

Other fields read

Read inOffsetSizeTypeFieldNotes
Plx0x3016bytes–
Symwave Is Xts0x84u32 BE–
Looks Decrypted0x2008bytes–

Constants

Wd Bridge Decrypted Device

NameValueTypeNotes
SectorWdBridgeKeys.SectorSizeint

Wd Bridge Keys

NameValueTypeNotes
SectorSize512int

Implementation limits

ClassNameValueNotes
Wd Bridge Decrypted DeviceMaxChunkBytes1024 * 1024
Wd Bridge KeysSearchBytes16L * 1024 * 1024
Wd Bridge KeysChunk1024 * 1024

Wd Bridge Chip

NameValue
JMicron(next)
Initio(next)
Symwave(next)
Plx(next)

Wd Data Layout

NameValue
Ecb(next)
tweak512-byte sector number

Signatures and magic strings referenced

TextWhere checked
EFI PARTLooks Decrypted
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.