Tspi_TPM_ClearOwner(3)

πŸ’– Tspi_TPM_ClearOwner πŸ’–

okay bestie, welcome to section 3 of the Library Functions Manual β€” this one's straight out of the TCG Software Stack Developer's Reference, and it's a banger ✨


🌸 NAME 🌸

Tspi_TPM_ClearOwner β€” clear TPM ownership πŸ§ΉπŸ’…


✨ 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_ClearOwner(TSS_HTPM hTPM, TSS_BOOL fForcedClear);

πŸ¦‹ DESCRIPTION πŸ¦‹

so Tspi_TPM_ClearOwner wipes the TPM of everything but its endorsement key. literally everything else? gone. 🫢

and bestie, it will wipe the SRK β€” which means anything locked to the SRK also disappears the moment this command runs. no take-backs, no receipts, no "wait can I get that back". 😭

the way this is the only way to be certain that keys are gone, because it's the only way to guarantee that nothing can keep a copy of the key. that's the whole point, that's the assignment. πŸ‘‘

and to even use this command you must assert either physical presence or owner authorization. you don't just get to do this, you have to prove it's you. πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

hTPM

the hTPM parameter specifies the handle of the TPM object. it's giving "which TPM are we talking to" energy. 🌈

fForcedClear

the fForcedClear parameter tells you whether this command is being executed with owner authorization or with physical presence:

  • if FALSE β†’ TPM owner authorization is used ✨
  • if TRUE β†’ physical presence is required to clear the TPM 🫑

πŸ’€ RETURN CODES πŸ’€

Tspi_TPM_ClearOwner returns TSS_SUCCESS on success πŸŽ‰ β€” otherwise, one of these lil guys comes back at you:

  • TSS_E_INVALID_HANDLE β€” hTPM is not a valid handle πŸ™ˆ
  • TSS_E_INTERNAL_ERROR β€” an internal SW error has been detected πŸ’€

πŸ‘‘ CONFORMING TO πŸ‘‘

Tspi_TPM_ClearOwner conforms to the Trusted Computing Group Software Specification version 1.1 Golden. periodt. πŸ’œ


🌈 SEE ALSO 🌈


okay that's the whole page bestie, you ate πŸ“ no cap. this iconic lil number is from TSS 1.1, dated 2004-05-25 β€” yeah she's vintage and she's still main character energy. byeee πŸ’–βœ¨πŸŽ€πŸ¦‹