Tspi_Key_LoadKey(3)
π Tspi_Key_LoadKey β it's giving "library functions manual" β¨
ok so bestie, welcome to the TCG Software Stack Developer's Reference π this is the Tspi_Key_LoadKey(3) page and it is lowkey iconic. grab a snack, we're loading keys into the TPM. π¦
πΈ NAME πΈ
Tspi_Key_LoadKey β load a key into the TPM π
β¨ 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_Key_LoadKey(TSS_HKEY hKey, TSS_HKEY hUnwrappingKey);
yes babe you have to include ALL of those headers, every single one, no skipping π copy them exactly, the TSS does not play.
π DESCRIPTION π
Tspi_Key_LoadKey loads the key referenced by hKey into the TPM. that's it, that's the vibe. key goes in, key is loaded β¨ main character energy fr fr.
π«Ά PARAMETERS π«Ά
hKey
The hKey parameter is the handle of the key object to load. π this is the key that's getting yeeted into the TPM.
hUnwrappingKey
The hUnwrappingKey parameter is the handle of the key which should be used to unwrap the key addressed by hKey. π think of it like: this one does the unwrapping, the other one is the gift inside. iykyk.
π₯ RETURN CODES π₯
Tspi_Key_LoadKey returns TSS_SUCCESS on success, otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβ eitherhKeyorhUnwrappingKeyis not a valid handle. π one of ur handles is fake, bestie.TSS_E_INTERNAL_ERRORβ an internal SW error has been detected. π not our fault, something inside went feral.TSS_E_BAD_PARAMETERβ one or more parameters is bad. π bad parameter, bad! go sit in the corner.
π CONFORMING TO π
Tspi_Key_LoadKey conforms to the Trusted Computing Group Software Specification version 1.1 Golden β so yes it's certified, it's official, it ate.
π SEE ALSO π
Tspi_Key_UnloadKey(3)π§Tspi_Key_GetPubKey(3)π
go read those next, bestie, they're the sequel. no cap.
and that's the whole page π this was TSS 1.1, dated 2005-02-01, and it's serving library-functions-manual realness from the TCG Software Stack Developer's Reference era. slay, periodt, go load some keys. ππ¦π
π¦ 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) 2005 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms