How does TPM store cryptographic keys?

How does TPM store cryptographic keys?

The Vault in the Silicon: How a TPM Stores Cryptographic Keys

In the world of hardware security, the TPM (Trusted Platform Module) is the ultimate "black box." It is a dedicated, tamper-resistant microcontroller designed specifically to protect secrets. Unlike your hard drive or your OS, which can be easily copied or searched, the TPM is designed so that once a key goes in, it (usually) never comes out.

Understanding how a TPM manages these keys is essential for anyone securing an Oracle server or a modern workstation.


1. The Key Hierarchy: The Primary Seed

A TPM doesn't just store a random list of keys. It uses a sophisticated Hierarchy of Trust. It all starts with the Endorsement Key (EK) and the Storage Root Key (SRK).

  • The EK (The Identity): This is a unique RSA key pair burned into the TPM during manufacturing. It represents the "soul" of the chip and never leaves the hardware.

  • The SRK (The Master): This is the root of the storage hierarchy. It is used to protect (wrap) all other keys created by applications or the Operating System.


2. "Wrapping" and "Binding": Storing Keys Externally

A TPM is tiny and has very limited internal memory (usually only enough to store a few dozen keys). To handle thousands of keys, it uses a clever technique called Wrapping.

  • The Process: When an application (like BitLocker or an Oracle database) generates a key, the TPM encrypts that key using its own internal Storage Root Key.

  • The Storage: This "wrapped" (encrypted) key is then handed back to the Operating System and stored on the regular hard drive.

  • The Security: Even though the key is sitting on your disk, it is completely useless to an attacker. It can only be "unwrapped" and used when it is fed back into the specific TPM chip that encrypted it.


3. TPM Non-Volatile (NV) RAM

While most keys are wrapped and stored externally, the TPM does have a small amount of NVRAM (Non-Volatile RAM) for critical "permanent" secrets. This is where the TPM stores:

  • The Owner Password: The "Master Key" to manage the TPM itself.

  • Platform Configuration Registers (PCRs): These are special "slots" that store hashes of your Secure Boot Chain. If the PCR values don't match (meaning your BIOS or Kernel was tampered with), the TPM will refuse to release the keys.


4. Shielded Locations and Execution

The most important feature of TPM storage is that the keys are used in Shielded Locations.

When a key is "unwrapped" to perform a digital signature or to decrypt a file, the actual mathematical work happens inside the TPM's internal processor, not in the main system RAM.

  • The Protection: Because the math happens inside the chip, the "plain-text" key is never exposed to the Operating System. This prevents Cold Boot Attacks or memory-sniffing malware from stealing the key while it's in use.


Summary: TPM Storage vs. Standard Storage

FeatureStandard OS StorageTPM Hardware Storage
LocationHDD / SSDDedicated Silicon / Internal NVRAM
VisibilityVisible to Root/AdminHidden from the OS
CopyingEasily clonedNon-migratable (bound to the chip)
UsageProcessed in System RAMProcessed in Shielded Execution Units

The Verdict

The TPM is a master of "Security through Obscurity." By using a combination of internal permanent seeds and external "wrapped" keys, it provides a virtually unlimited storage capacity for secrets while ensuring that those secrets are physically tied to one—and only one—piece of hardware.

Looking for servers Rental ?

Call Our Expert :


  • (call for rental enquiries)

Email us :