TSPI_TPM_GETAUDITDIGEST(3)
β¨ Tspi_TPM_GetAuditDigest β¨
okay bestie, welcome to the Tspi_T...tDigest(3) page π this one lives in the TCG Software Stack Developer's Reference, and it's literally all about pulling up your audit digest. no cap.
πΈ NAME πΈ
Tspi_TPM_GetAuditDigest β retrieve the audit digest. that's it. that's the whole job. π
π¦ SYNOPSIS π¦
#include <tss/tspi.h>
TSS_RESULT Tspi_TPM_GetAuditDigest(TSS_HTPM hTpm, TSS_HKEY hKey,
TSS_BOOL closeAudit, UINT32* pulAuditDigestSize,
BYTE** prgbAuditDigest, TPM_COUNTER_VALUE* pCounterValue,
TSS_VALIDATION* pValidationData, UINT32* ordSize,
UINT32** ordList);
look at all those params, she's serving main character energy fr fr π
π DESCRIPTION π
so like, Tspi_TPM_GetAuditDigest is the function you call to retrieve the audit digest. and here's the tea: the audit digest may be signed or unsigned β it's giving two very different moods.
- if the audit digest is signed (meaning
hKeyis non-NULL π) then you get back the current audit digest, the current audit counter and, optionally, the hash of the audited ordinal list plus a signature. - if the audit digest is not signed (meaning
hKeyis NULL π) then you get back the current audit digest, the current audit counter and the full list of audited ordinals.
either way you're eating good. β
π PARAMETERS π
π hTpm
handle of the TPM object. your TPM bestie. π«Ά
π hKey
handle of the signature key object (the handle can be NULL). yes, NULL is allowed, she's flexible like that.
π
closeAudit
a flag indicating whether or not to close the current audit digest after it is signed. β οΈ heads up: this parameter is ignored if hKey is NULL.
β¨ pulAuditDigestSize
pointer to the size of the returned audit digest. just the size, bestie, the receipts come next.
π¦ prgbAuditDigest
pointer to a buffer that holds the returned audit digest. this is where the actual digest lives π
πΈ pCounterValue
pointer to a TPM_COUNTER_VALUE structure that holds the returned audit counter. iconic little struct.
π₯ pValidationData
pointer to a validation data structure. okay so this one is lowkey the most involved β the validation data structure provides external information required to compute the signature. let's break it down:
- on input, the fields representing the
ExternalDatamust contain an anti-replay nonce that will be used in the signing operation. π² - on output, this structure provides a buffer containing the data used to compute the validation data and a buffer containing the validation data (a signature generated by signing the data using the key referenced by
hKey). π
and if this parameter is NULL then the TSS will perform the validation for you. π«‘ this parameter is ignored if hKey is NULL.
π ordSize
pointer to the number of ordinals in the returned audited ordinal list. β οΈ this parameter is ignored if hKey is non-NULL.
π ordList
pointer to a buffer that holds the returned audited ordinal list. β οΈ this parameter is ignored if hKey is non-NULL.
π RETURN CODES π
Tspi_TPM_GetAuditDigest returns TSS_SUCCESS on success π otherwise one of the following values are returned:
TSS_E_INVALID_HANDLETSS_E_BAD_PARAMETERTSS_E_INTERNAL_ERRORβ An error occurred internal to the TSS. π not the internal error, we hate to see it
π CONFORMING TO π
Tspi_TPM_GetAuditDigest conforms to the Trusted Computing Group Software Specification Version 1.2. certified, compliant, slay. periodt. π
and that's the whole page bestie!! this was TSS 1.2, dated 2007-06-27 β yeah she's an elder icon but she still hits π go get those audit digests, mwah πβ¨
π¦ 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