Tspi_TPM_Quote2(3)
π Tspi_TPM_Quote2(3)
okay bestie, sit down, we're reading a page from the TCG Software Stack Developer's Reference and honestly? it's a good one. this is the manual for Tspi_TPM_Quote2, and yes she's the cooler, more thorough little sister of Tspi_TPM_Quote. π¦
β¨ NAME β¨
Tspi_TPM_Quote2 β grab yourself a signed set of PCR values, but with a way more complete view than what Tspi_TPM_Quote gives you. it's giving "same vibe, more receipts". π
πΈ 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_Quote2(TSS_HTPM hTPM, TSS_HKEY hIdentKey,
TSS_BOOL fAddVersion, TSS_HPCRS hPcrComposite,
TSS_VALIDATION* pValidationData, UINT32* versionInfoSize,
BYTE** versionInfo);
look at all those includes. she comes prepared. π
π DESCRIPTION π
Tspi_TPM_Quote2 quotes a TCG system, and it hands the requestor a more complete view of the current platform configuration than Tspi_TPM_Quote does. like, same energy, but she shows you the whole fit instead of just the shoes. β¨
π«Ά PARAMETERS π«Ά
hTPM
the handle of the TPM object. your main character. π
hIdentKey
the handle of the signature key object.
fAddVersion
if it's TRUE, the TPM version gets added to the output. if it's FALSE, the TPM version does not get added to the output. that's it, that's the whole toggle. π
hPcrComposite
the handle of the PCR composite object β and this one is the whole point, because it contains the PCRs that are going to be quoted. π₯
pValidationData
the validation data structure. so:
- [IN] β you provide the
externalDatainformation that's required to compute the signature. - [OUT] β once the command completes successfully, this structure gives you a buffer containing the validation data, plus a buffer containing the data the validation data was computed from.
two-way street, she talks back. π
versionInfoSize
the size of the bytestream that versionInfo returns. heads up: if fAddVersion is False, this is zero. β
versionInfo
the version information, returned as a byte stream that reflects the data in TSS_CAP_VERSION_INFO β but only if fAddVersion is TRUE. otherwise it's NULL. no version info, no problem. π
π RETURN CODES π
Tspi_TPM_Quote returns TSS_SUCCESS when everything slays. otherwise, one of these lil guys comes back at you:
TSS_E_INVALID_HANDLEβhTPM,hIdentKeyorhPcrCompositeis not a valid handle. (one of them is fake, bestie π)TSS_E_BAD_PARAMETERTSS_E_INTERNAL_ERRORβ an error happened internal to the TSS. not your fault, but still your problem. π
π CONFORMING TO π
Tspi_TPM_Quote2 conforms to the Trusted Computing Group Software Specification version 1.2. certified icon behavior, no cap. π
π¦ SEE ALSO π¦
and that's the whole page, bestie β you ate that. this one's from TSS 1.2, dated 2007-04-03, so she's vintage but she still understood the assignment. periodt. πβ¨π
π¦ 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) 2007 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms