[tpm2] "tpm2_import" Integrity Check issue on a Big Endian 32 Bit Platform

Rajkumar K Sivasamy <rajkumar.k.sivasamy at gmail.com>
Newsgroups dev.linux.lists.tpm2
Message-ID <CADu5Hqz2o0jMMT+q81x=njOygRNqVvb72sFud1cbRXkjgFEwAQ@mail.gmail.com>
Hello Team

I am trying to use tpm2_import on a Big Endian 32 Bit platform and running
into following error:

--------------------------------------------------------------------------------------------------------------------------------

*Command: *

   1.

   openssl genrsa -out private.pem 2048
   2. tpm2_import -C 0x81000001 -G rsa -i private.pem -u key.pub -r key.priv


*Error:*
ERROR:esys:src/tss2-esys/api/Esys_Import.c:110:Esys_Import() Esys Finish
ErrorCode (0x000003df)
ERROR: Esys_HMAC(0x3DF) - tpm:parameter(3):integrity check failed
ERROR: Unable to run tpm2_import
--------------------------------------------------------------------------------------------------------------------------------


Need pointers to debug this issue.
Have any of you come across this error with tpm2_import on Big Endian 32
Bit Platform? Do we have a fix Or can you provide inputs on the source
where I can look at for further debugging?

Thanks
Raj
attachment.htm (text/html, 1.3 KB)
<div dir="ltr"><div>Hello Team</div><div><br></div><div>I am trying to use tpm2_import on a Big Endian 32 Bit platform and running into following error:</div><div><br></div><div>--------------------------------------------------------------------------------------------------------------------------------<br></div><div><b><br></b></div><div><b>Command: </b><br></div><div><ol><li>










<p style="margin:0in;font-family:Calibri;font-size:11pt">openssl
genrsa -out private.pem 2048</p>




</li><li>tpm2_import -C 0x81000001 -G rsa -i private.pem -u key.pub -r key.priv</li></ol></div><div><b><br></b></div><div><b>Error:</b><br></div><div></div><div>ERROR:esys:src/tss2-esys/api/Esys_Import.c:110:Esys_Import() Esys Finish ErrorCode (0x000003df)<br>ERROR: Esys_HMAC(0x3DF) - tpm:parameter(3):integrity check failed<br>ERROR: Unable to run tpm2_import<br></div><div>
-------------------------------------------------------------------------------------------------------------------------------- <br></div><div><br></div><div>Need pointers to debug this issue.</div><div>Have any of you come across this error with tpm2_import on Big Endian 32 Bit Platform? Do we have a fix Or can you provide inputs on the source where I can look at for further debugging?<br></div><div><br></div><div>Thanks</div><div>Raj<br></div></div>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.