TSPI_TPM_CREATEENDORSEMENTKEY(3)
π Tspi_TPM_CreateEndorsementKey β Library Functions Manual π
okay bestie, welcome to the TCG Software Stack Developer's Reference π«Ά this one lives in section 3 of the Library Functions Manual and it's giving very "trusted computing, but make it cute" energy. let's get into it β¨
β¨ NAME β¨
Tspi_TPM_CreateEndorsementKey β create the endorsement key π
πΈ 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_CreateEndorsementKey(TSS_HTPM hTPM, TSS_HKEY hKey,
TSS_VALIDATION* pValidationData);
like, seven includes, one function call. the way that header list just keeps going?? iconic. π
π¦ DESCRIPTION π¦
Tspi_TPM_CreateEndorsementKey creates an endorsement key. π
β οΈ but bestie, real talk: this function is currently not implemented. it's literally just vibing in the header file, manifesting. don't build your whole personality around it working, fr fr. π
before this method is called, the key information for creating the key must be set in the key object by Tspi_SetAttribData. so like, you gotta prep the key first, no skipping steps. π
on return, the public endorsement key can be retrieved by Tspi_GetAttribData from the key object. so the flow is: set attribs β (theoretically) create β get attribs. lowkey a whole journey. β¨
π PARAMETERS π
π hTPM
the hTPM parameter is used to specify the handle of the TPM object. it's your TPM's little name tag π·οΈ
π hKey
the hKey parameter is the handle of the key specifying the attributes of the endorsement key to create. this is the key that knows what kind of endorsement key we're cooking up π₯
π pValidationData
the pValidationData parameter is a validation data structure. it provides external information required to compute the signature. ποΈ
once the command is completed, the structure provides a buffer containing the validation data and a buffer containing the data the validation data was computed from. two buffers, one struct, main character energy tbh. π
π₯ RETURN CODES π₯
Tspi_TPM_CreateEndorsementKey returns TSS_SUCCESS on success, otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβhTPMorhKeyis not a valid handle. π something's fake in the group chat.TSS_E_INTERNAL_ERRORβ an internal SW error has been detected. not us, it's the internals. πTSS_E_BAD_PARAMETERβ one or more parameters is bad. bestie behaved badly. π
π§ CONFORMING TO π§
Tspi_TPM_CreateEndorsementKey conforms to the Trusted Computing Group Software Specification version 1.1 Golden. β¨ certified, no cap.
π SEE ALSO π
go read those next, iykyk π
and that's the whole page, bestie! this one's from TSS 1.1, dated 2004-05-25, served up from the Library Functions Manual π mwah, go forth and set those attribs ππ¦β¨
π¦ 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