TSPI_TPM_GETEVENT(3)

πŸ’– Tspi_TPM_GetEvent πŸ’–

okay bestie, welcome to the TCG Software Stack Developer's Reference β€” yes that's the manual we're in, and yes it's a whole vibe. this page is about Tspi_TPM_GetEvent, and we're gonna get you fluent, no cap. 🫢


✨ NAME ✨

Tspi_TPM_GetEvent β€” get a PCR event for a given PCR index and event number. it's giving "look up one specific thing in the event log," and honestly? iconic. πŸ’…


🌸 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_GetEvent(TSS_HTPM hTPM,          UINT32         ulPcrIndex,
                             UINT32   ulEventNumber, TSS_PCR_EVENT* pPcrEvent);

like, include the headers, call the function, get your event. simple. gorgeous. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Tspi_TPM_GetEvent provides a PCR event for a given PCR index and event number. that's it, that's the whole job. you hand it a PCR index and an event number, and it hands you back the event. main character energy: it knows exactly what you're looking for and it delivers. πŸ’œ


πŸŽ€ PARAMETERS πŸŽ€

  • hTPM β€” handle of the TPM object. your TPM's lil ID card, basically.
  • ulPcrIndex β€” index of the PCR to request. which PCR are we talking about, bestie?
  • ulEventNumber β€” index of the event to request. which event in particular?
  • pPcrEvent β€” receives the PCR event data. this is where the goods land. πŸ“

πŸ’€ RETURN CODES πŸ’€

Tspi_TPM_GetEvent returns TSS_SUCCESS on success β€” slay β€” otherwise one of the following values are returned:

  • TSS_E_INVALID_HANDLE β€” hTPM is not a valid handle to the TPM object. the handle didn't pass the vibe check, sorry babe. 😭
  • TSS_E_INTERNAL_ERROR β€” an error occurred internal to the TSS. not your fault, it's a them problem. πŸ’€

πŸ‘‘ CONFORMING TO πŸ‘‘

Tspi_TPM_GetEvent conforms to the Trusted Computing Group Software Specification version 1.1 Golden. periodt. we're standards-compliant and we're thriving. 🌈


🌟 SEE ALSO 🌟

go read those too, bestie, the lore runs deep. 🧚


TSS 1.1 Β· 2004-05-26 β€” yeah she's an elder but she still ate, fr fr. that's the source/version and date, straight from the footer, mwah πŸ’–βœ¨πŸŽ€