linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Mimi Zohar <zohar@linux.ibm.com>, linux-integrity@vger.kernel.org
Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Subject: Re: [PATCH 1/1] tpm: add sysfs exports for all banks of PCR registers
Date: Tue, 21 Jul 2020 08:52:48 -0700	[thread overview]
Message-ID: <1595346768.4494.15.camel@HansenPartnership.com> (raw)
In-Reply-To: <1595346474.5109.37.camel@linux.ibm.com>

On Tue, 2020-07-21 at 11:47 -0400, Mimi Zohar wrote:
> On Tue, 2020-07-21 at 08:06 -0700, James Bottomley wrote:
> > On Tue, 2020-07-21 at 08:30 -0400, Mimi Zohar wrote:
> > I think the sysfs output should be a pure hash to save having to
> > massage it.  However, if you want the 1.2 format, this is the
> > script I
> > use:
> > 
> > a=0; while [ $a -lt 24 ]; do printf "PCR-%02d: " $a; cat
> > /sys/class/tpm/tpm0/pcr-sha1/$a; a=$[$a+1]; done
> 
> The TPM 1.2 format is a bit different,

You mean the spaces between each byte?  I can persuade the script to do
that, but there didn't seem to be much point given that everything I've
seen that uses the hashes has to remove it.

>  but this provides the PCRs and digests sequentially.

Right.

I've got the v2 that should work on TPM 1.2 if you can test it for me? 
My TPM 1.2 machine is somewhat infrastructure critical, so I have
difficulty rebooting it.

James


      reply	other threads:[~2020-07-21 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-20 15:00 [PATCH 0/1] add sysfs exports for TPM 2 PCR registers James Bottomley
2020-07-20 15:00 ` [PATCH 1/1] tpm: add sysfs exports for all banks of " James Bottomley
2020-07-21 12:30   ` Mimi Zohar
2020-07-21 15:06     ` James Bottomley
2020-07-21 15:47       ` Mimi Zohar
2020-07-21 15:52         ` James Bottomley [this message]

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=1595346768.4494.15.camel@HansenPartnership.com \
    --to=james.bottomley@hansenpartnership.com \
    --cc=jarkko.sakkinen@linux.intel.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=zohar@linux.ibm.com \
    /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;
as well as URLs for NNTP newsgroup(s).