All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] what the different between 0x1d5 and 0x3d5
@ 2018-10-31  9:15 Terry An
  0 siblings, 0 replies; 5+ messages in thread
From: Terry An @ 2018-10-31  9:15 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

[root(a)localhost tpm2-init]# tpm2_rc_decode  0x1d5
tpm:parameter(1):structure is the wrong size
[root(a)localhost tpm2-init]# tpm2_rc_decode  0x3d5
tpm:parameter(3):structure is the wrong size

I'm so confusing where my code is wrong.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 345 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [tpm2] what the different between 0x1d5 and 0x3d5
@ 2018-11-05 15:05 Roberts, William C
  0 siblings, 0 replies; 5+ messages in thread
From: Roberts, William C @ 2018-11-05 15:05 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

The difference is in which parameter structure is the wrong size, look at the outputs
and note the difference in the parameter output. 1 vs 3.  

> -----Original Message-----
> From: tpm2 [mailto:tpm2-bounces(a)lists.01.org] On Behalf Of Terry An
> Sent: Wednesday, October 31, 2018 2:15 AM
> To: tpm2(a)lists.01.org
> Subject: [tpm2] what the different between 0x1d5 and 0x3d5
> 
> [root(a)localhost tpm2-init]# tpm2_rc_decode  0x1d5 tpm:parameter(1):structure
> is the wrong size [root(a)localhost tpm2-init]# tpm2_rc_decode  0x3d5
> tpm:parameter(3):structure is the wrong size
> 
> I'm so confusing where my code is wrong.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [tpm2] what the different between 0x1d5 and 0x3d5
@ 2018-11-01 15:48 Tadeusz Struk
  0 siblings, 0 replies; 5+ messages in thread
From: Tadeusz Struk @ 2018-11-01 15:48 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

On 11/1/18 12:47 AM, Terry An wrote:
> 782     TSS2_RC rval = TSS2_RETRY_EXP(Tss2_Sys_Import(sapi_context, phandle,
> 783                 &sessionsData, enc_sensitive_key, public,
> 784                 private, encrypted_seed, sym_alg,
> 785                 imported_private, &npsessionsDataOut));
> 786     if (rval != TPM2_RC_SUCCESS) {
> 787         LOG_ERROR("Tss2_Sys_Import() failed: %#x", rval);
> 788         return -1;
> 789     }
> 
> 
> This function returns 0x3d5, and I don't know which parameter should be checked.

I would say that it complains about the sessionsData.

-- 
Tadeusz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [tpm2] what the different between 0x1d5 and 0x3d5
@ 2018-11-01  7:47 Terry An
  0 siblings, 0 replies; 5+ messages in thread
From: Terry An @ 2018-11-01  7:47 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

782     TSS2_RC rval = TSS2_RETRY_EXP(Tss2_Sys_Import(sapi_context, phandle,
783                 &sessionsData, enc_sensitive_key, public,
784                 private, encrypted_seed, sym_alg,
785                 imported_private, &npsessionsDataOut));
786     if (rval != TPM2_RC_SUCCESS) {
787         LOG_ERROR("Tss2_Sys_Import() failed: %#x", rval);
788         return -1;
789     }


This function returns 0x3d5, and I don't know which parameter should be
checked.

On Thu, Nov 1, 2018 at 12:47 AM Tadeusz Struk <tadeusz.struk(a)intel.com>
wrote:

> On 10/31/18 2:15 AM, Terry An wrote:
> > [root(a)localhost tpm2-init]# tpm2_rc_decode  0x1d5
> > tpm:parameter(1):structure is the wrong size
> > [root(a)localhost tpm2-init]# tpm2_rc_decode  0x3d5
> > tpm:parameter(3):structure is the wrong size
> >
> > I'm so confusing where my code is wrong.
>
> The first error code indicates that the size of the
> first parameter is wrong, and the second error code
> says that the size of the third parameter is wrong.
> See section 6.6 of:
> https://trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-2-Structures-01.38.pdf
> for details.
>
> --
> Tadeusz
>

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1808 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [tpm2] what the different between 0x1d5 and 0x3d5
@ 2018-10-31 16:46 Tadeusz Struk
  0 siblings, 0 replies; 5+ messages in thread
From: Tadeusz Struk @ 2018-10-31 16:46 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On 10/31/18 2:15 AM, Terry An wrote:
> [root(a)localhost tpm2-init]# tpm2_rc_decode  0x1d5
> tpm:parameter(1):structure is the wrong size
> [root(a)localhost tpm2-init]# tpm2_rc_decode  0x3d5
> tpm:parameter(3):structure is the wrong size
> 
> I'm so confusing where my code is wrong.

The first error code indicates that the size of the
first parameter is wrong, and the second error code
says that the size of the third parameter is wrong.
See section 6.6 of: https://trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-2-Structures-01.38.pdf
for details.

-- 
Tadeusz

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-05 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31  9:15 [tpm2] what the different between 0x1d5 and 0x3d5 Terry An
2018-10-31 16:46 Tadeusz Struk
2018-11-01  7:47 Terry An
2018-11-01 15:48 Tadeusz Struk
2018-11-05 15:05 Roberts, William C

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.