
is it possible to create a child public key that can be used to encrypt data externally ? I am new to tpm2....
is it possible to create a child public key that can be used to encrypt data externally ?
I am new to tpm2.
I would to create a child key from a primary key.
I need to encrypt my data with the child public key externally.
After that, this encrypted data will be sent to the TPM for decryption.
Provided that, the TPM with only perform the decryption if the encrypted data was encrypted by a public key cat be linked back to primary key; in other words, the TPM will not perform decryption if the public key does not come from itself.
It is possible to do that ? Are there any work around ?
BTW, I tried to miss-use the endorsement key, make-crendential and active-crential to do the job I have mentioned above. But I failed, because the size of encrypted blob must be less than or equal to 64 bytes which is why too small for my data.
👍
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
benzwt benzwt use the TPM to encrypt an external cryptographic key and then use this external key for the encryption. This is better because the TPM is not fast at encrypting, and you still benefit from the TPM security.
You could do this a few ways, one is use the public key to encrypt a key that is used to decrypt the data, send that to the device that has the TPM 2.0 and then decrypt the key and then use that to decrypt the data, as Dimitar is describing. Another …more