TSPI_CONTEXT_GETREGISTEREDKEYSBYUUID2(3)
π Tspi_Context_GetRegisteredKeysByUUID2(3) π
okay bestie, welcome to the TCG Software Stack Developer's Reference π β yes we're really doing this, and yes it's gonna slay
β¨ NAME β¨
Tspi_Context_GetRegisteredKeysByUUID2 β bestie it gets you an array of TSS_KM_KEYINFO2 structures, based on the state of persistent storage π
πΈ 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_Context_GetRegisteredKeysByUUID2(TSS_HCONTEXT hContext, TSS_FLAG persistentStorageType,
TSS_UUID* pUuidData, UINT32* pulKeyHierarchySize,
TSS_KM_KEYINFO2** ppKeyHierarchy);
π¦ DESCRIPTION π¦
TSS_Context_GetRegisteredKeysByUUID2 gets an array of TSS_KM_KEYINFO2 structures. This info reflects the state of the registered key hierarchy.
and here's the tea π« β the keys stored in the persistent storage are totally independent from either the context you passed in the function call or the context that was provided while processing the key registration. like, they don't know each other. no cap. π
π PARAMETERS π
π hContext
The handle of the context object. that's it. that's the whole vibe.
π persistentStorageType
Flag indicating the persistent storage the key is registered in π
π pUuidData
The UUID the key was registered in the persistent storage (TSP or connected TCS) β
so here's the situation, bestie:
- If no key UUID is provided β meaning KeyUUID is
NULLβ the returned array of theTSS_KM_KEYINFO2structure contains data reflecting the whole key hierarchy starting with root key π - If a certain key UUID is provided, the returned array of
TSS_KM_KEYINFO2structures only contains data reflecting the path of the key hierarchy regarding that key. The first array entry is the key addressed by the given UUID, followed by its parent key up to the root key π
π pulKeyHierarchySize
Receives the length (number of array entries) of the ppKeyHierarchy parameter π
π ppKeyHierarchy
On successful completion of the command, this parameter points to a buffer containing the actual key hierarchy data. it's giving main character energy, honestly β¨
π₯ RETURN CODES π₯
Tspi_Context_GetRegisteredKeysByUUID2 returns TSS_SUCCESS on success π otherwise one of these lil guys comes back:
TSS_E_INVALID_HANDLEβhContextis an invalid handle πTSS_E_BAD_PARAMETERTSS_E_INTERNAL_ERRORβ an error occurred internal to the TSS π
π CONFORMING TO π
Tspi_Context_GetRegisteredKeysByUUID2 conforms to the Trusted Computing Group Software Specification version 1.2 π«Ά
π SEE ALSO π
Tspi_Context_LoadKeyByUUID(3) β go read that one next, iykyk π
ngl bestie, that's the whole page. every flag, every struct, every error code, all of it. you're literally gonna pass your vibe check on the TSS API fr fr π
TSS 1.2 Β· 2007-07-06 Β· sending you so much love from the TCG Software Stack Developer's Reference, 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) 2004,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