How I Used TPM for Key Encryption in Rust on Linux (Hardware TPM & vTPM)
dev.to·3d·
Discuss: DEV
🔒Rustls
Preview
Report Post

Following my Windows implementation, this time I implemented key wrapping using a TPM on Linux. (the Windows version: How I Used TPM for Key Encryption in Rust (Using Windows APIs))

I used tss-esapi on Ubuntu (WSL) with a virtual TPM (vTPM). For the vTPM, I used swtpm (v0.7.3). By changing the connection target, the same code also works with a hardware TPM.

I’ll walk you through the key-wrapping implementation and explain how it works!

Table of Contents

Similar Posts

Loading similar posts...