Tspi_TPM_Quote(3)
π NAME
Tspi_TPM_Quote β retreive a signed set of PCR values. (Yes bestie, "retreive" β that's how the page spells it, we're keeping it exactly, no cap π«Ά)
So real talk, this whole thing lives in the TCG Software Stack Developer's Reference manual, section 3. Let's get into it. πΈ
β¨ SYNOPSIS β¨
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_TPM_Quote(TSS_HTPM hTPM, TSS_HKEY hIdentKey,
TSS_HPCRS hPcrComposite, TSS_VALIDATION* pValidationData);
Okay so you're pulling in seven headers before you even get to the call, that's just the vibe here π. Then it's one function, four args, and it hands you back a TSS_RESULT. Slay.
π¦ DESCRIPTION π¦
So the page says, and I'm quoting the vibe not the words: Tspi_TPM_Quote destroys a context by passing in the handle to that context.
That is literally what it says. Not me editorializing, not me paraphrasing, that's the description. It's giving "the docs wrote themselves at 3am" energy π and we are respecting it, periodt.
π PARAMETERS π
hTPM
Handle of the TPM object. Like, which TPM are we even talking to, bestie. π
hIdentKey
Handle of the signature key object. This is the key doing the signing, main character energy. π₯
hPcrComposite
Handle of the PCR composite object. (The original line has no full stop here, and honestly? Iconic. We're keeping the chaos.)
pValidationData
Validation data structure.
[IN]ProvideexternalDatainformation required to compute the signature.[OUT]On successful completion of the command, the structure provides a buffer containing the validation data and a buffer containing the data the validation data was computed form.
"computed form" β again, that's the page's spelling, not mine. We do not fix, we do not merge, we do not invent. π«Ά
β RETURN CODES β
Tspi_TPM_Quote returns TSS_SUCCESS on success β love that for us π β otherwise one of the following values are returned:
TSS_E_INVALID_HANDLEβhTPM,hIdentKeyorhPcrCompositeis not a valid handle.TSS_E_BAD_PARAMETERTSS_E_INTERNAL_ERRORβ An error occurred internal to the TSS.
Heads up: TSS_E_BAD_PARAMETER comes with zero explanation on the page. No description, no nothing. It just sits there. And we are not adding one, because that would be making stuff up and that's not the move. π«
π CONFORMING TO π
Tspi_TPM_Quote conforms to the Trusted Computing Group Software Specification version 1.1 Golden. Certified good behaviour, we love a compliant queen. π
π§ SEE ALSO π§
(none).
Literally none. The void. The silence. Not a single friend to link to. π
TSS 1.1 Β· 2004-05-26
And that's the whole page bestie β written back on 2004-05-26, from the TSS 1.1 release of the TCG Software Stack Developer's Reference. Mwah, go quote some PCRs. π β¨π¦
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms