TCTI-CMD(7)

✨ TCTI-CMD ✨ (section 7, bestie)

okay so this is TCTI-CMD(7) from the TPM2 Software Stack β€” yes, the whole manual page, and yes, I'm gonna make it make sense. stay with me πŸ’–


🌸 NAME 🌸

tcti-cmd β€” the TPM2 Sub-process Command TCTI library. that's it, that's the name, and she's iconic for it πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

A TPM Command Transmission Interface (TCTI) module for interaction with a sub-process. lowkey that's the whole vibe: you got a TPM thing, you got a sub-process, this library makes them talk πŸ’…


✨ DESCRIPTION ✨

so tcti-cmd is a library that abstracts away all the messy details of direct communication with the interface and protocol exposed by a sub-process β€” and that sub-process is the one that can receive and transmit raw TPM2 command and response buffers. like, raw. unfiltered. no cap 🫢

the interface that this library exposes is defined in the β€œTSS System Level API and TPM Command Transmission Interface Specification” specification. so if you wanna know the exact shape of it, that's where you go. iykyk πŸ“œ


πŸŽ€ EXAMPLES πŸŽ€

okay bestie, real talk, let's see her in action.

say you wanted to use the tpm2_send(1) command as the sub-process to send data to and from the TPM. you could do it like this:

tpm2_getrandom -T "cmd:tpm2_send -s" --hex 4

and now the more useful one, because honestly this is the glow-up ✨ β€” connecting to a remote machine using ssh and interacting with the remote machine's TPM as if it were local. this uses tpm2_send(1) on a remote machine, and it uses ssh as the sub-process to create the tunnel to the remote machine. and here's the part that EATS: if encrypted sessions are used, the remote machine is blinded to the TPM data and cannot interpose on that traffic. the way that's such a serve πŸ”₯

tpm2_getrandom -T "cmd:ssh remotehost tpm2_send" -s --hex 4

πŸ’œ AUTHOR πŸ’œ

TPM2 Software Project <https://github.com/tpm2-software/tpm2-tss>


🌈 SEE ALSO 🌈

go read these too, they're all in the group chat:


🧚 COLOPHON 🧚

this page is part of release 4.2.0 of Open Source implementation of the TCG TPM2 Software Stack (TSS2). a description of the project, information about reporting bugs, and the latest version of this page can be found at <https://github.com/tpm2-software/tpm2-tss/>. literally go check it out, the bugs section is right there πŸ›


πŸ‘‘ LICENSE πŸ‘‘

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). For more information visit <https://creativecommons.org/licenses/by/4.0/>


Intel Β· MAY 2020 Β· TCTI-CMD(7)

and that's the page bestie!! πŸ’–βœ¨ from the Intel girlies, back in MAY 2020, page TCTI-CMD(7) of release 4.2.0 β€” slay, no notes, periodt πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from