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βhTPMis 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 πβ¨ππ¦
π¦ 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