All of lore.kernel.org
 help / color / mirror / Atom feed
From: Desai, Imran <imran.desai at intel.com>
To: tpm2@lists.01.org
Subject: [tpm2] Re: Using a session with TPM2_CreatePrimary
Date: Sun, 26 Jun 2022 23:32:07 +0000	[thread overview]
Message-ID: <BYAPR11MB317696F77D4B5E40C87E4E17E2B69@BYAPR11MB3176.namprd11.prod.outlook.com> (raw)
In-Reply-To: SN6PR11MB343712D5C5189D76DE87CA8DB8B69@SN6PR11MB3437.namprd11.prod.outlook.com

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

That’s right, it needs to be added for createprimary. Having said that, if your tpm supports createloaded, you can use tpm2_create tool  to create a primary object as well.
________________________________
From: Roberts, William C <william.c.roberts(a)intel.com>
Sent: Sunday, June 26, 2022 3:31:56 PM
To: Shaw, Adrian <adrian.shaw(a)hp.com>; tpm2(a)lists.01.org <tpm2(a)lists.01.org>; Desai, Imran <imran.desai(a)intel.com>
Subject: Re: Using a session with TPM2_CreatePrimary

I'm pretty sure it's just missing; we haven't enabled session support throughout all the tools yet. Imran am I correct?
________________________________
From: Shaw, Adrian <adrian.shaw(a)hp.com>
Sent: Wednesday, June 22, 2022 12:10 PM
To: tpm2(a)lists.01.org <tpm2(a)lists.01.org>
Subject: [tpm2] Using a session with TPM2_CreatePrimary

Hi everyone,

I’m trying to create a primary key using an authenticated and encrypted session.

I looked at the man page for tpm2_createprimary https://github.com/tpm2-software/tpm2-tools/blob/1226b5333e0f051edf67739743a68f668f9ba07a/man/tpm2_createprimary.1.md

It does not seem to be possible - there is no way to specify the session to use.

However, it is possible to do this in the IBM TSS equivalent https://www.mankier.com/1/tsscreateprimary

I noticed you can specify a session for other commands though, like tpm2_create, but not with tpm2_createprimary.

Is this a missing feature or am I missing some fundamental understanding?

Thanks,
Adrian

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

             reply	other threads:[~2022-06-26 23:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-26 23:32 Desai, Imran [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-01 13:29 [tpm2] Re: Using a session with TPM2_CreatePrimary Shaw, Adrian
2022-06-26 22:31 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=BYAPR11MB317696F77D4B5E40C87E4E17E2B69@BYAPR11MB3176.namprd11.prod.outlook.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 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.