tpm2_load_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

tpm2_load_cmd(9) πŸ’…

okay so this little icon is straight out of the Kernel API Manual, and it's literally the function that executes a TPM2_Load command. no cap, it's giving "load the key into the TPM" energy. 🫢


✨ NAME ✨

tpm2_load_cmd β€” execute a TPM2_Load command. that's it, that's the whole vibe. πŸ’–

🌸 SYNOPSIS 🌸

int tpm2_load_cmd (struct tpm_chip *chip , struct trusted_key_payload *payload , struct trusted_key_options *options , u32 *blob_handle );

πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” TPM chip to use. your main character TPM, basically. πŸ‘‘
  • payload β€” the key data in clear and encrypted form. both forms, bestie β€” it's got layers. πŸ“
  • options β€” authentication values and other options. all the auth-y bits and extra settings. πŸ”₯
  • blob_handle β€” returned blob handle. that's what comes back out. ✨

πŸ’€ RETURN πŸ’€

  • 0 on success. slay. βœ…
  • -E2BIG on wrong payload size. wrong payload size, not the vibe. 😭
  • -EPERM on tpm error status. the TPM is not having it. πŸ™ˆ
  • < 0 error from tpm_send. anything less than zero means tpm_send said nope. πŸ’”

🌈 SEE ALSO 🌈


that's the whole page, bestie! πŸ’– source ./security/keys/trusted-keys, dated October 2026, and it's tpm2_load_cmd(9) β€” periodt. πŸŽ€

πŸ“¦ where this page comes from