16 Aug, 2017

1 commit


27 Mar, 2017

3 commits

  • It is sometimes convenient to know how many and/or which resources are
    currently loaded into a TPG, e.g. to test is a flush operation succeeded.

    Hence, we add a command that lists the resources of a given type currently
    loaded into the TPM.

    Signed-off-by: Mario Six
    Reviewed-by: Simon Glass

    mario.six@gdsys.cc
     
  • Commit 7690be35de ("lib: tpm: Add command to flush resources") added a command
    to flush resources from a TPM.

    However, a previous development version was accidentially used to generate the
    patch, resulting in a non-functional command.

    This patch fixes the flush command.

    Signed-off-by: Mario Six
    Reviewed-by: Simon Glass

    mario.six@gdsys.cc
     
  • 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
    Reviewed-by: Simon Glass

    mario.six@gdsys.cc
     

01 Feb, 2017

1 commit


15 Mar, 2016

1 commit


29 Jan, 2016

1 commit


25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass