tpm2_unseal_cmd(9)
π 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 topayloadβ the key data in clear and encrypted form π yes bestie, both forms, it's giving dualityoptionsβ authentication values and other options π the vibe check credentials, basicallyblob_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 fromtpm_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 π
- Kernel file
./security/keys/trusted-keys/trusted_tpm2.cπ tpm2_buf_append_auth(9)tpm2_seal_trusted(9)tpm2_load_cmd(9)tpm2_unseal_trusted(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms