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 β€” either hKey or hUnwrappingKey is 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 πŸ‘‘

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. πŸŽ€πŸ¦‹πŸ’