
Hello! We observe a strange behaviour on some platforms with a TPM and maybe some of you can help! Basically...
Hello!
We observe a strange behaviour on some platforms with a TPM and maybe some of you can help!
Basically we have the following flow in our application during system startup:
1. system starts
2. create primary key in the storage hierarchy
3. use that primary key to create more keys for the application
4. shutdown the application by saving the context of those keys on disk
5. shutdown the system
During next startup, we repeat steps 1 and 2 and load the context of the previously saved keys from disk, to use them.
However on some platform we observe an "integrity check failed" error (0x000001df) when loading the context of the keys.
Our expectation would be that if the Storage Primary Seed and the template of the primary key do not change, the primary storage key would be the same and loading the key context would work after a reboot.
Would it be possible that the SPS changes after a TPM Reset?
#ChatAndFeedbackπ
1β€οΈ
π
π‘
π
π
Explore More Posts

Infineon lifts the veto on 9678 and I added back the information to our PQC Readiness page in our TPMdev tutorials - https://github.com/tpm2dev/tpm.dev.tutorials/blob/master/PQC/pqc-ready-tpm.md
#TPMDEV2026 Registration is now open. Online seats are limited (not a joke, streaming capacity). Secure your spot by registering today - https://events.zoom.us/ev/At5hYcw-lZoyOdB5W0MEy8olBvqgyR47DA3r7yptfWG5xHDZ2Y3V~AtG0Iepwg5qMqLJOT7QHCwcl7aai2M3qEMQYdmAof_9bJbjErQlhygjd5A
The latest tpm2-tools 5.8 release addresses three GitHub security advisories. One is a heap overflow in tpm2_getekcertificate, and the other is an out-of-bounds write that happens when too many sessions are in use. I donβt have information on the third advisory. Beyond the fixes, 5.8 extends EK certificate handling. It adds the option to read EK certificates from NV RAM, introduces new EK templates and supports a marshaled quote format. https://github.com/tpm2-software/tpm2-tools/releases/tag/5.8


Comments
Start the Conversation
This has been resolved in the chat.
Basically, you saved contexts cannot be reloaded across TPM resets (host reboots).
β¦more
Yes, I was going to write a summary here :) Thank you Nicolas and Erik for helping me with this.
As you quoted from the Part 1 -Architecture, section 30.1: "Saved contexts for all objects and sess β¦more