TCG Opal
TCG Opal is a Trusted Computing Group specification for self-encrypting storage that defines credentials, independently lockable and erasable ranges and a pre-boot shadow area.
Opal runs over ATA or NVMe security commands, mandates AES with 128-bit or 256-bit keys and supports several credentials. The drive is divided into locking ranges plus a global range, and each range can be locked and cryptographically erased on its own with its own data-encryption key, protected by a media key. [2]
A 2019 study of drives from three manufacturers, built 2014 to 2018, found implementations that did not derive the data-encryption key from the user password, one key used for the whole disk, and a weakness around a DEVSLP sleep transition, while one drive showed no derivation weakness. An operating-system disk-encryption feature left the global range unprotected, exposing other ranges' keys. The authors judge the standard too complex and note that the reduced Opalite profile is rarely supported. [2]
The Linux Opal interface allows keys up to 256 bytes, nine locking ranges, an administrator and nine user authorities, read-only, read-write and locked states, shadow-MBR handling, and discovery of the TPer, single-user mode, geometry, locking, enterprise, data store and Opal v1 and v2 features. [3]
Relations
Citations
- Self-encrypting deception: weaknesses in the encryption of solid state drives
- include/uapi/linux/sed-opal.h and block/sed-opal.c, Linux kernel source
Further reading
Sources & caveats
- The TCG Opal specification text could not be retrieved (download requests were rejected), so no clause numbers, versions or conformance levels are given.
- c2 is a university study (IEEE S&P 2019) independent of drive makers; tested firmware may since have changed.
- c3 is one implementation (Linux master branch), not the standard.