TPM2 (Trusted Platform Module) userspace development
 help / color / mirror / Atom feed
From: Florian.Schreiner at infineon.com
To: tpm2@lists.01.org
Subject: [tpm2] Re: Help for tpm-tools comand sequence
Date: Mon, 07 Sep 2020 18:22:29 +0000	[thread overview]
Message-ID: <8bc5325178244d5db47b6bb83fc80c96@infineon.com> (raw)
In-Reply-To: CAKjtTmwowXKgNPznvkT5qVP7yPDVCSTfWJb7MPq6p-nvPrymow@mail.gmail.com

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

Hi,

you could check the documents and instructions on the page: https://www.infineon.com/cms/en/product/promopages/tpm-tss-quickstarter/
At the bottom of the page you can find a Appnote document, which shows the usage of the tpm-tools on a working setup and you can find the difference to your system. Section 5.2 shows the usage of the FAPI tpm2-tools and section 6.3.1. presents the ESAPI tpm2-tools.

Best,
Florian


From: Juncor <juncor.wu(a)gmail.com>
Sent: Freitag, 4. September 2020 03:22
To: tpm2(a)lists.01.org
Subject: [tpm2] Help for tpm-tools comand sequence

Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safe<http://iweb.infineon.com/en-US/Support/security/CDC/pse/Pages/pce.aspx>.


Hi Sir:

I had a embeded linux system project.
SOC: AM3352.
KERNEL 4.9.59 with slb9670 driver.

I can see the /dev/tpm0.
I build the tpm-tss 1.x and tpm-tools 2.X.
I didn't running tpm-abrmd and any resourcemgr.
I access direct to /dev/tpm.

I export two environment.
export TPM2TOOLS_TCTI_NAME=device
export TPM2TOOLS_DEVICE_FILE=/dev/tpm0

I want check the sign and verify.
Here is my command.
tpm2_createprimary -A e -g 0x000B -G 0x0001 -C primary_ctx
tpm2_create -g 0x000B -G 0x0001 -c primary_ctx -o kry_pub -O key_priv
tpm2_load -c primary_ctx -u kry_pub -r key_priv -n name -C eccsinging_key_ctx
tpm2_sing -c eccsigning_key_ctx -g 0x000B -m input_data -s signature

I alway got error after tpm2_sign command:
ERROR: ContextLoad Error. TPM Error:0x902.

I have no idea which step error?

Thanks for help.

Juncor

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

             reply	other threads:[~2020-09-07 18:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 18:22 Florian.Schreiner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-04 16:41 [tpm2] Re: Help for tpm-tools comand sequence Roberts, William C

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8bc5325178244d5db47b6bb83fc80c96@infineon.com \
    --to=tpm2@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox