All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] tpm: Add function to load keys via their parent's SHA1 hash
Date: Wed, 22 Mar 2017 07:05:53 -0600	[thread overview]
Message-ID: <CAPnjgZ1oy-Mfq+FKT0F9+cbGKqgfnjmAwaMi+tNf4iYJo8=8ug@mail.gmail.com> (raw)
In-Reply-To: <20170320092830.3040-2-mario.six@gdsys.cc>

On 20 March 2017 at 03:28, Mario Six <mario.six@gdsys.cc> wrote:
> If we want to load a key into a TPM, we need to know the designated parent
> key's handle, so that the TPM is able to insert the key at the correct place in
> the key hierarchy.
>
> However, if we want to load a key whose designated parent key we also
> previously loaded ourselves, we first need to memorize this parent key's handle
> (since the handles for the key are chosen at random when they are inserted into
> the TPM). If we are, however, unable to do so, for example if the parent key is
> loaded into the TPM during production, and its child key during the actual
> boot, we must find a different mechanism to identify the parent key.
>
> To solve this problem, we add a function that allows U-Boot to load a key into
> the TPM using their designated parent key's SHA1 hash, and the corresponding
> auth data.
>
> Signed-off-by: Mario Six <mario.six@gdsys.cc>
> ---
>  cmd/tpm.c           | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
>  drivers/tpm/Kconfig |  8 ++++++++
>  include/tpm.h       | 12 ++++++++++++
>  lib/tpm.c           | 40 ++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 109 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Perhaps you don't need a new Kconfig option? Is that to save code space?

  reply	other threads:[~2017-03-22 13:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-20  9:28 [U-Boot] [PATCH 0/3] tpm: Add and fix commands Mario Six
2017-03-20  9:28 ` [U-Boot] [PATCH 1/3] tpm: Add function to load keys via their parent's SHA1 hash Mario Six
2017-03-22 13:05   ` Simon Glass [this message]
2017-03-22 13:20     ` Mario Six
2017-03-22 13:27       ` Simon Glass
2017-03-22 14:07         ` Mario Six
2017-03-22 14:47           ` Simon Glass
2017-03-27  2:27             ` Simon Glass
2017-03-20  9:28 ` [U-Boot] [PATCH 2/3] cmd: tpm: Fix flush command Mario Six
2017-03-22 13:05   ` Simon Glass
2017-03-27  2:27     ` Simon Glass
2017-03-20  9:28 ` [U-Boot] [PATCH 3/3] lib: tpm: Add command to list resources Mario Six
2017-03-22 13:05   ` Simon Glass
2017-03-24  9:54     ` Mario Six
2017-03-27  2:27       ` Simon Glass

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='CAPnjgZ1oy-Mfq+FKT0F9+cbGKqgfnjmAwaMi+tNf4iYJo8=8ug@mail.gmail.com' \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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.