Closed dsaiju closed 2 years ago
The TPM has a space for a few hundred bytes. It should not be used to store arbitrary data. The outcome is expected.
To add to this, consider only storing a regular-sized key that encrypts your larger data. TPM modules are not meant to store encrypted data, but keys.
I am writing a .NET app that stores and reads strings to TPM storage and it is targeted for both Windows and Red Hat Linux VMs. I'm using Microsoft.TSS (2.1.1) NuGet package for this purpose. I can store byte[] up to ~1024 bytes. But when when I try anything around 4000bytes (my max data size), it breaks. Below is the code I am using to store and retrieve data. Any suggestions would be helpful. Store()
Get()