TSPI_CONTEXT_GETKEYBYUUID(3)
β¨ Tspi_Context_GetKeyByUUID β it's giving "find my key" β¨
okay bestie, so this one lives in the Library Functions Manual section of the TCG Software Stack Developers Reference, and it's literally the glow-up you need when your key is out there registered in persistent storage and you're like "where is she π
". Manual name's Tspi_Context_GetKeyByUUID(3), in case you were wondering. Let's go π¦
π NAME π
Tspi_Context_GetKeyByUUID β get a handle to a key registered in persistent storage.
no cap, that's the whole vibe: you got a UUID, she got a key, you want them to meet π«Ά
β¨ 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_GetKeyByUUID(TSS_HCONTEXT hContext, TSS_FLAG persistentStorageType,
TSS_UUID uuidData, TSS_HKEY* phKey);
like, include the whole lil family of headers, she needs all of them, don't skip a single one π
π DESCRIPTION π
So Tspi_Context_GetKeyByUUID goes rummaging through the Persistent Storage database looking for a key that's registered under the UUID you hand her. When she finds it β boom β she creates a key object initialized with the data she found, and hands you back a handle to that key object. it's giving matchmaker energy fr fr π
πΈ PARAMETERS πΈ
hContext
The hContext parameter is the handle of the context object. your main character context, basically π
persistentStorageType
The persistentStorageType parameter tells you which persistent storage the key is registered in. like, which shelf she's sitting on π
uuidData
The uuidData parameter is the UUID by which the key is registered in persistent storage. this is the β¨name tagβ¨ you're searching by.
phKey
The phKey parameter receives the handle of the key object representing the key. this is the lil gift bag she hands back to you π«Ά
π₯ RETURN CODES π₯
Tspi_Context_GetKeyByUUID returns TSS_SUCCESS on success β slay β otherwise one of these bad boys comes back at you:
TSS_E_INVALID_HANDLEβhContextis an invalid handle. she doesn't know her πTSS_E_PS_KEY_NOTFOUNDβ the key cannot be found in the persistent storage database. she's not there bestie, i looked πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. something broke inside and it's not your fault πTSS_E_BAD_PARAMETERβ one or more parameters is bad. ngl, check your args π
π CONFORMING TO π
Tspi_Context_GetKeyByUUID conforms to the Trusted Computing Group Software Specification version 1.1 Golden. iconic. periodt. β
π SEE ALSO π
Tspi_Context_GetTpmObject(3)Tspi_Context_LoadKeyByUUID(3)Tspi_Context_GetRegisteredKeysByUUID(3)Tspi_Context_GetKeyByPublicInfo(3)
and that's the whole page, bestie π this was TSS 1.1, dated 2004-05-25, and it came to you straight from the TCG Software Stack Developers Reference. go get your key, you got this π§β¨π
π¦ 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