tpm2_unseal_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tpm2_unseal_cmd(9) β€” the kernel API manual, bestie edition

okay so welcome to tpm2_unseal_cmd, straight out of the kernel API manual ✨ this is the little function whose whole personality is "execute a TPM2_Unseal command" β€” that's it, that's the gig 🫢


🌸 NAME 🌸

tpm2_unseal_cmd β€” execute a TPM2_Unseal command πŸ’–

✨ SYNOPSIS ✨

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

like… look at that signature. four args. main character energy fr fr πŸ‘‘

πŸ¦‹ ARGUMENTS πŸ¦‹

  • chip β€” TPM chip to use πŸ’… this is the actual hardware friend we're talking to
  • payload β€” the key data in clear and encrypted form πŸŽ€ yes bestie, both forms, it's giving duality
  • options β€” authentication values and other options πŸ” the vibe check credentials, basically
  • blob_handle β€” blob handle 🌸 that's the whole description. short and iconic. periodt.

⭐ RETURN ⭐

  • 0 β€” on success πŸ₯³ slay, we ate
  • -EPERM β€” on tpm error status 😭 the TPM said no and it's personal
  • < 0 β€” error from tpm_send πŸ’€ the send itself went sideways
ngl, keep an eye on these values β€” a nonzero return is your signal that the unseal did NOT happen, so don't go acting like it did πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

go read those next, iykyk 🧚 the whole friend group is lowkey essential.


and that's the page, bestie β€” brought to you by the lovely humans over at ./security/keys/trusted-keys, dated October 2026, living under the tpm2_unseal_cmd(9) banner 🌈 stay unsealed, stay iconic, mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from