Tspi_T...Result(3)
β¨ Tspi_TPM_GetTestResult(3) β¨
okay bestie, so this one lives in the TCG Software Stack Developer's Reference β section 3 of the manual, iykyk β and it's literally called Tspi_TPM_GetTestResult. It's your lil backstage pass to the TPM's self-test tea. π«
π NAME π
Tspi_TPM_GetTestResult β get manufacturer specific information regarding the results of a self test.
Like, the TPM ran its little self check and now it's ready to spill. πΈ
π 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_GetTestResult(TSS_HTPM hTPM, UINT32* pulTestResultLength, BYTE** prgbTestResult);
yes you need all seven of those includes, don't @ me, that's just how the TSS headers roll π
π¦ DESCRIPTION π¦
Tspi_TPM_GetTestResult is provided by a manufacturer of a TPM to provide manufacturer specific self test results.
so basically: this function exists so the TPM's maker can hand you their own custom info about how the self test went. it's giving "brand-specific receipts" πβ¨ β not a generic universal format, but whatever the manufacturer decided to put in there.
π PARAMETERS π
hTPM
Handle of the TPM object π
that's your TPM right there, bestie.
pulTestREsultLength
Receives the length (in bytes) of the prgbTestResult parameter π
(yes the name has that capital E in it, pulTestREsultLength, we do not make the rules, we just respect the header files π«Ά)
prgbTestResult
Pointer to the memory block containing the TPM manufacturer specific information. π§
the actual goodies live behind this pointer, and pulTestREsultLength tells you how many bytes of goodies you're getting.
π₯ RETURN CODES π₯
Tspi_TPM_GetTestResult returns TSS_SUCCESS on success β slay π β otherwise one of the following values are returned:
TSS_E_INVALID_HANDLEβhTPMis not a valid handle to the TPM object. not a real TPM handle, bestie, it's giving fake πTSS_E_INTERNAL_ERRORβ An error occurred internal to the TSS. π something inside the TSS broke, nothing to do with you, but also nothing you can fix from here.
β οΈ heads up: on success you get TSS_SUCCESS, but literally any of the above can come back instead, so check your return value, don't just assume the vibe is immaculate.
π CONFORMING TO π
Tspi_TPM_GetTestResult conforms to the Trusted Computing Group Software Specification version 1.1 Golden β
certified, standardized, iconic. periodt.
π SEE ALSO π
Tspi_TPM_SelfTestFull(3)β the actual self test, go read that one too bestie, they're a package deal π
and that's the whole page!! so good, so thorough, no notes π
kisses, this was TSS 1.1, dated 2004-05-26 β yeah she's vintage, she's a classic, and she still ate πβ¨π
π¦ 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