Course contentsShow
← Security
Lesson 307 of 3,0527. Randomness and Key ManagementFree lesson

Trusted Platform Modules (TPMs)

Leveraging TPMs for key generation, storage, and cryptographic operations tied to specific hardware platforms.

Trusted Platform Modules (TPMs)

You'll learn: How TPMs create and protect cryptographic keys inside dedicated hardware chips that are bound to your specific device.

What Is a TPM?

A Trusted Platform Module is a specialized microchip (or firmware implementation) physically integrated into your computer's motherboard. While HSMs (Hardware Security Modules) are enterprise-grade external devices, TPMs are consumer-grade security chips built into laptops, desktops, servers, and even mobile devices.

Think of a TPM as a personal vault welded into your computer's foundation. Unlike software-based key storage (which can be copied to another machine), the TPM ties cryptographic operations to that specific piece of hardware.

Core TPM Capabilities

Key Generation and Storage:
The TPM contains its own CSPRNG and generates keys internally. These keys can be marked as "non-exportable," meaning they never leave the chip — not even the owner can extract them. You can only ask the TPM to perform operations using those keys.

Platform-Bound Operations:
TPMs measure your system's boot state (firmware, bootloader, OS components) and store these measurements in Platform Configuration Registers (PCRs). Keys can be "sealed" to specific PCR values, so they only unlock when your system boots in a known-good state. This prevents attackers from booting malicious operating systems to steal your data.

Common Use Cases:

  • Disk encryption (BitLocker, LUKS) — keys unlock only on the correct hardware
  • Secure Boot verification — ensuring firmware hasn't been tampered with
  • Device attestation — proving to remote servers that your hardware is genuine

Key Takeaway:
TPMs provide hardware-rooted key storage and cryptographic operations that are permanently bound to a specific device, making keys non-transferable and enabling platform integrity verification.