tpm2-software/tpm2-tss

Tss2_Sys_Unseal returns 0x99d.

Closed this issue · 4 comments

Like in title the function is returning me this error code and I dunno what it is. Can somebody point me what can it be?

OK after few more investigations I have come to a place where this error code is from Tss2_Sys_Execute.c.

According to the comment in the code it means that I have received a TPM error, but what shall be done than? In addition the code which I'm running is not mine, it is from https://github.com/jiazhang0/cryptfs-tpm2 and I have a bug on it in jiazhang0/cryptfs-tpm2#26

0x99d indicates that the correct policy for the authorization of the object was not executed.

0x99d indicates that the correct policy for the authorization of the object was not executed.

Is it possible that when I'm sealing object to TPM from different kernel image (some live USB used for installment) that the object won't be unsealed and therefore accessible from the kernel installed within the OS image?

OK, my bad everything is working as expected I had to turn on secure boot in UEFI 👍