All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberts, William C <william.c.roberts at intel.com>
To: tpm2@lists.01.org
Subject: [tpm2] Re: trying duplication and then rsa_en/decrypt
Date: Thu, 21 May 2020 17:06:13 +0000	[thread overview]
Message-ID: <476DC76E7D1DF2438D32BFADF679FC5649EF3FFF@ORSMSX101.amr.corp.intel.com> (raw)
In-Reply-To: 7fb00ec2-60eb-3027-f9d5-dda3d939f884@oracle.com

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



> -----Original Message-----
> From: ted.h.kim(a)oracle.com [mailto:ted.h.kim(a)oracle.com]
> Sent: Thursday, May 21, 2020 11:19 AM
> To: Roberts, William C <william.c.roberts(a)intel.com>
> Cc: Desai, Imran <imran.desai(a)intel.com>; tpm2(a)lists.01.org
> Subject: Re: [tpm2] Re: trying duplication and then rsa_en/decrypt
> 
> William,
> 
> Thanks for your reply.
> 
> On 5/21/20 8:08 AM, Roberts, William C wrote:
> >> -----Original Message-----
> >> From: ted.h.kim(a)oracle.com [mailto:ted.h.kim(a)oracle.com]
> >> Sent: Wednesday, May 20, 2020 7:38 PM
> >> To: Desai, Imran <imran.desai(a)intel.com>
> >> Cc: tpm2(a)lists.01.org
> >> Subject: [tpm2] Re: trying duplication and then rsa_en/decrypt
> >>
> >> Imran,
> >>
> >> The fix worked -- Thank you.
> >>
> >> One other suggestion would be to add "userwithauth" to the
> >> tpm2_create commands in the man page examples for tpm2_duplicate(1)
> >> and tpm2_policyduplicationselect(1). This would make the duplicated
> >> keys in those examples more useful.
> > That patch I had to revert, a similar fix will come out, but we must
> > not turn down userwith when someone:
> > - doesn't provide attributes via -a
> > - doesn't provide a password
> > - does provide a policy
> >
> > If someone specifies a policy and no password without explicitly
> > providing the attributes, they likely want the authorization to the
> > object to be controlled via policy, not policy and an empty password. So when
> the tool is choosing attributes that's how it needs to do it.
> > So for your example, you'll have to specify userwithauth and then we
> > will update the manpage to reflect this.
> >
> > Note that your creating an object with no real auth value (empty
> > password), so keep that in mind.
> 
> understand, looking forward to the final fix
> 
> 
> >> Since I am on the 4.1.X branch, should I expect this fix to roll out with 4.1.3 ?
> > Why not just bump versions? Everything on 4.X is backwards compat, nothing
> breaks.
> > You may need to bump your tss version, but again, backwards compat,
> > should just Work.
> 
> I will eventually do that.
> 
> But for the moment, I don't have the time. I know using tpm2-tools-4.2.X
> requires tpm2-tss-2.4.x which for my environment has some missing
> dependencies which I have yet to resolve.

No worries, we should be able to do a backport fix for you. We have a milestone here:
https://github.com/tpm2-software/tpm2-tools/milestone/20

Hopefully Monday we can cut RC0 and then a week form that have a full release.


> 
> Thanks,
> -ted
> 
> 
> >> Thanks,
> >> -ted
> >>
> >> On 5/20/20 1:49 PM, ted.h.kim(a)oracle.com wrote:
> >>> Imran,
> >>>
> >>> Okay, I will try it out.
> >>>
> >>> Also thanks for the pointer to the example on duplicating objects
> >>> between TPMs.
> >>>
> >>> Thanks,
> >>> -ted
> >>>
> >>> On 5/20/20 12:44 PM, Imran Desai wrote:
> >>>> I have a PR fixing this issue. If you want to try your script with
> >>>> this branch, it is here:
> >>>> https://urldefense.com/v3/__https://github.com/tpm2-software/tpm2-t
> >>>> oo
> >>>> ls/pull/2038__;!!GqivPVa7Brio!JgE6G26n2bbDPLYBuJ2jf-Buv9U53CDF_b_5y
> >>>> 43
> >>>> EAj8Q9hiybuldt1D8ZH_RPlQ$
> >>>> _______________________________________________
> >>>> tpm2 mailing list -- tpm2(a)lists.01.org To unsubscribe send an email
> >>>> to tpm2-leave(a)lists.01.org
> >>>> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
> >> --
> >> Ted H. Kim, PhD
> >> ted.h.kim(a)oracle.com
> >> +1 310-258-7515
> >>
> >> _______________________________________________
> >> tpm2 mailing list -- tpm2(a)lists.01.org To unsubscribe send an email
> >> to tpm2-leave(a)lists.01.org
> >> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
> 
> --
> Ted H. Kim, PhD
> ted.h.kim(a)oracle.com
> +1 310-258-7515
> 


             reply	other threads:[~2020-05-21 17:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21 17:06 Roberts, William C [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-21 16:18 [tpm2] Re: trying duplication and then rsa_en/decrypt ted.h.kim
2020-05-21 15:08 Roberts, William C
2020-05-21  0:37 ted.h.kim
2020-05-20 20:49 ted.h.kim
2020-05-20 19:44 Imran Desai
2020-05-20 19:38 Imran Desai
2020-05-20 19:15 Imran Desai
2020-05-20 18:56 ted.h.kim
2020-05-20 18:03 ted.h.kim
2020-05-20 17:31 Imran Desai
2020-05-20 15:09 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=476DC76E7D1DF2438D32BFADF679FC5649EF3FFF@ORSMSX101.amr.corp.intel.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.