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:
Tss2_Tcti_Device_Init(3)Tss2_Tcti_Socket_Init(3)Tss2_TctiLdr_Initialize(3)Tss2_TctiLdr_Finalize(3)tcti-device(7)tcti-socket(7)tcti-tabrmd(7)tpm2-abrmd(8)
π§ 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
- arch rolling: tpm2-tss 4.2.0-2 Β· BSD-2-Clause
- nixos 26.05: tpm2-tss 4.2.0
- nixpkgs unstable: tpm2-tss 4.2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms