Skip to contentSkip to conversation

authentication error

tpm2 FIXED-TERM Schick Felix (CR/APA3) 2 participants 2 messages Oct 13, 2020

lore
Share & tools
lore

FIXED-TERM Schick Felix (CR/APA3)

author
#0 lore raw

Hello everyone,

I am currently struggling with the usage of tpm2-tss and co. on an Raspberry Pi 3.
I've been using the Stack on a Software TPM for a while now and never had any big issues, but after I started working with an Infineon Hardware TPM on an Raspberry Pi 3 I ran into some problems.

I have not run into errors while compiling and installing the stack but I kept getting the linker error:

undefined symbol: Esys_TRSess_GetAuthRequired

for libtss2-fapi.so.

I was able to work around this error by just disabling the FAPI before compiling, but now I get the following error on every command call:

ERROR:esys:src/tss2-esys/api/Esys_ReadClock.c:170:Esys_ReadClock_Async() SAPI error on SetCmdAuths ErrorCode (0x00080010) ERROR:esys:src/tss2-esys/api/Esys_ReadClock.c:68:Esys_ReadClock() Error in async function ErrorCode (0x00080010)
ERROR: Esys_ReadClock(0x80010) - sys:If size of a parameter is incorrect
ERROR: Unable to run tpm2_readclock

I guess both have something to do with the Authentication. I would be very grateful if someone could help me with this issue.

Thank you very much and Best regards

Felix Schick

#1 lore raw

Do you have a (very) old version of the TSS still hanging around on your system ?

maybe call ldd on your executable and on the libraries and see what they link against.

________________________________
From: FIXED-TERM Schick Felix (CR/APA3) [fixed-term.Felix.Schick3(a)bosch.com]
Sent: Tuesday, October 13, 2020 12:17
To: tpm2(a)lists.01.org
Subject: [tpm2] authentication error

Hello everyone,

I am currently struggling with the usage of tpm2-tss and co. on an Raspberry Pi 3.
I’ve been using the Stack on a Software TPM for a while now and never had any big issues, but after I started working with an Infineon Hardware TPM on an Raspberry Pi 3 I ran into some problems.

I have not run into errors while compiling and installing the stack but I kept getting the linker error:

undefined symbol: Esys_TRSess_GetAuthRequired

for libtss2-fapi.so.

I was able to work around this error by just disabling the FAPI before compiling, but now I get the following error on every command call:

ERROR:esys:src/tss2-esys/api/Esys_ReadClock.c:170:Esys_ReadClock_Async() SAPI error on SetCmdAuths ErrorCode (0x00080010) ERROR:esys:src/tss2-esys/api/Esys_ReadClock.c:68:Esys_ReadClock() Error in async function ErrorCode (0x00080010)
ERROR: Esys_ReadClock(0x80010) - sys:If size of a parameter is incorrect
ERROR: Unable to run tpm2_readclock

I guess both have something to do with the Authentication. I would be very grateful if someone could help me with this issue.

Thank you very much and Best regards

Felix Schick