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

Roberts, William C <william.c.roberts at intel.com>
Newsgroups dev.linux.lists.tpm2
Message-ID <DM6PR11MB3434E92D56A7B032A597ED59B8699@DM6PR11MB3434.namprd11.prod.outlook.com>
+ Imran

What version of tools and tss are you running?

I just noticed that the tools CI doesn't have the multi-arch images enabled. Let me investigate adding this and see if I can reproduce.
________________________________
From: Rajkumar K Sivasamy <rajkumar.k.sivasamy(a)gmail.com>
Sent: Wednesday, December 1, 2021 11:40 PM
To: tpm2(a)lists.01.org <tpm2(a)lists.01.org>
Subject: [tpm2] "tpm2_import" Integrity Check issue on a Big Endian 32 Bit Platform

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, 2.8 KB)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
+ Imran</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What version of tools and tss are you running?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I just noticed that the tools CI doesn't have the multi-arch images enabled. Let me investigate adding this and see if I can reproduce.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Rajkumar K Sivasamy &lt;[email protected]&gt;<br>
<b>Sent:</b> Wednesday, December 1, 2021 11:40 PM<br>
<b>To:</b> [email protected] &lt;[email protected]&gt;<br>
<b>Subject:</b> [tpm2] &quot;tpm2_import&quot; Integrity Check issue on a Big Endian 32 Bit Platform</font>
<div>&nbsp;</div>
</div>
<div>
<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>
</div>
</body>
</html>
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.