[tpm2] Re: "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 | <CADu5HqwHtao46dmH0xuZn_15mtS1LtLa=4HiFcXaVPTQYHo=_g@mail.gmail.com> |
- tpm2-tss 3.1.0 and Tpm2-tools 5.2 2021-09-2 8==> tpm2_import fails with error 0x3DF - tpm2-tss 3.0.4 and Tpm2-tools 5.2 2021-09-28 ==> tpm2_import fails with error 0x3DF - tpm2-tss 3.0.4 and Tpm2-tools 5.2 ==> tpm2_import succeeds Why are you putting dates on some of the tpm2-tools versions but not tpm2-tss? [Raj] TPM2 Tools Master has this date code "2021-09-28" at " https://github.com/tpm2-software/tpm2-tools" for the version, hence I have used it to indicate the source code version of tpm2-tools which I downloaded from https://github.com/tpm2-software/tpm2-tools tpm2-tools 5.2 source was downloaded from link: https://github.com/tpm2-software/tpm2-tools/releases/download/5.2/tpm2-tools-5.2.tar.gz tpm2-tss 3.1.0 was downloaded from https://github.com/tpm2-software/tpm2-tss tpm2-tss 3.0.4 was downloaded from https://github.com/tpm2-software/tpm2-tss/releases/download/3.0.4/tpm2-tss-3.0.4.tar.gz Let me know if you would need any further information. Regards Raj On Fri, Dec 3, 2021 at 3:55 AM Roberts, William C < william.c.roberts(a)intel.com> wrote: > > From: Rajkumar K Sivasamy <rajkumar.k.sivasamy(a)gmail.com> > > Sent: Thursday, December 2, 2021 2:41 PM > > To: Roberts, William C <william.c.roberts(a)intel.com> > > Cc: tpm2(a)lists.01.org <tpm2(a)lists.01.org>; Desai, Imran < > imran.desai(a)intel.com> > > Subject: Re: [tpm2] "tpm2_import" Integrity Check issue on a Big Endian > 32 Bit Platform > > > Hello William > > > I am using below versions: > > tpm2-tss 3.1.0 > > tpm2-tools 5.2 2021-09-28 > > > To further narrow down, I replaced tpm2-tss 3.1.0 with tpm2-tss 3.0.4 > and tpm2_import still failed with 0x3DF. > > > Now along with tpm2-tss- 3.0.4 I used tpm2-tools 5.2 and tpm2_import > succeeds; seems to be a problem with tpm2-tools t.2 2021-09-28. > > I'm confused. I read both these lines as I used tpm2-tss 3.0.4 and > tpm2-tools 5.2 and it succeeds and fails. Why are you putting dates on some > of > the tpm2-tools versions but not tpm2-tss? > > > > Regards > > Raj > > > On Thu, Dec 2, 2021 at 8:44 PM Roberts, William C < > william.c.roberts(a)intel.com> wrote: > > + 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: > > openssl genrsa -out private.pem 2048 > > 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, 5.7 KB)
<div dir="ltr"><div>- <span style="font-size:11pt;font-family:"Calibri",sans-serif">tpm2-tss 3.1.0</span> and <span style="font-size:11pt;font-family:"Calibri",sans-serif">Tpm2-tools 5.2 2021-09-2 8</span>==> tpm2_import fails with error 0x3DF<br></div><div>- tpm2-tss <span style="font-size:11pt;font-family:"Calibri",sans-serif">3.0.4</span> and <span style="font-size:11pt;font-family:"Calibri",sans-serif">Tpm2-tools 5.2 2021-09-28 </span>==> tpm2_import fails with error 0x3DF </div><div> - tpm2-tss <span style="font-size:11pt;font-family:"Calibri",sans-serif">3.0.4</span> and <span style="font-size:11pt;font-family:"Calibri",sans-serif">Tpm2-tools 5.2 </span>==> tpm2_import succeeds</div><div><br></div><div>Why are you putting dates on some of the tpm2-tools versions but not tpm2-tss?<span class="gmail-im gmail-HOEnZb"><br></span> </div><div>[Raj] TPM2 Tools Master has this date code "2021-09-28" at "<a href="https://github.com/tpm2-software/tpm2-tools">https://github.com/tpm2-software/tpm2-tools</a>" for the version, hence I have used it to indicate the source code version of tpm2-tools which I downloaded from <a href="https://github.com/tpm2-software/tpm2-tools">https://github.com/tpm2-software/tpm2-tools</a></div><div><br></div><div>tpm2-tools 5.2 source was downloaded from link: <a href="https://github.com/tpm2-software/tpm2-tools/releases/download/5.2/tpm2-tools-5.2.tar.gz">https://github.com/tpm2-software/tpm2-tools/releases/download/5.2/tpm2-tools-5.2.tar.gz</a></div><div>tpm2-tss 3.1.0 was downloaded from <a href="https://github.com/tpm2-software/tpm2-tss">https://github.com/tpm2-software/tpm2-tss</a></div><div>tpm2-tss 3.0.4 was downloaded from <a href="https://github.com/tpm2-software/tpm2-tss/releases/download/3.0.4/tpm2-tss-3.0.4.tar.gz">https://github.com/tpm2-software/tpm2-tss/releases/download/3.0.4/tpm2-tss-3.0.4.tar.gz</a></div><div><br></div><div>Let me know if you would need any further information.</div><div><br></div><div>Regards<br></div><div>Raj<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 3, 2021 at 3:55 AM Roberts, William C <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> From: Rajkumar K Sivasamy <<a href="mailto:[email protected]" target="_blank">[email protected]</a>><br> > Sent: Thursday, December 2, 2021 2:41 PM<br> > To: Roberts, William C <<a href="mailto:[email protected]" target="_blank">[email protected]</a>><br> > Cc: <a href="mailto:[email protected]" target="_blank">[email protected]</a> <<a href="mailto:[email protected]" target="_blank">[email protected]</a>>; Desai, Imran <<a href="mailto:[email protected]" target="_blank">[email protected]</a>><br> > Subject: Re: [tpm2] "tpm2_import" Integrity Check issue on a Big Endian 32 Bit Platform <br> <br> > Hello William<br> <br> > I am using below versions:<br> > tpm2-tss 3.1.0<br> > tpm2-tools 5.2 2021-09-28<br> <br> > To further narrow down, I replaced tpm2-tss 3.1.0 with tpm2-tss 3.0.4 and tpm2_import still failed with 0x3DF.<br> <br> > Now along with tpm2-tss- 3.0.4 I used tpm2-tools 5.2 and tpm2_import succeeds; seems to be a problem with tpm2-tools t.2 2021-09-28.<br> <br> I'm confused. I read both these lines as I used tpm2-tss 3.0.4 and tpm2-tools 5.2 and it succeeds and fails. Why are you putting dates on some of<br> the tpm2-tools versions but not tpm2-tss?<br> <br> <br> > Regards<br> > Raj<br> <br> > On Thu, Dec 2, 2021 at 8:44 PM Roberts, William C <<a href="mailto:[email protected]" target="_blank">[email protected]</a>> wrote:<br> > + Imran<br> <br> > What version of tools and tss are you running?<br> <br> > 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.<br> <br> > From: Rajkumar K Sivasamy <<a href="mailto:[email protected]" target="_blank">[email protected]</a>><br> > Sent: Wednesday, December 1, 2021 11:40 PM<br> > To: <a href="mailto:[email protected]" target="_blank">[email protected]</a> <<a href="mailto:[email protected]" target="_blank">[email protected]</a>><br> > Subject: [tpm2] "tpm2_import" Integrity Check issue on a Big Endian 32 Bit Platform <br> <br> > Hello Team<br> <br> > I am trying to use tpm2_import on a Big Endian 32 Bit platform and running into following error:<br> <br> > --------------------------------------------------------------------------------------------------------------------------------<br> <br> > Command: <br> > openssl genrsa -out private.pem 2048<br> > tpm2_import -C 0x81000001 -G rsa -i private.pem -u key.pub -r key.priv<br> <br> > Error:<br> > 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> > -------------------------------------------------------------------------------------------------------------------------------- <br> <br> > Need pointers to debug this issue.<br> > 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> <br> > Thanks<br> > Raj</blockquote></div>