From: Ken Goldman <kgold-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH 0/4] Add support for TPM2 log reported via ACPI table
Date: Fri, 31 Mar 2017 10:43:32 -0400 [thread overview]
Message-ID: <1e3208ff-2565-7d11-6670-1b1e72cf8e5c@linux.vnet.ibm.com> (raw)
In-Reply-To: <58DCBE41.3060507-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
On 3/30/2017 4:13 AM, Petr Vandrovec wrote:
> Nayna wrote:
>>
>>
>> On 03/29/2017 01:13 PM, Petr Vandrovec wrote:
>> [snip]
>>> tpm2_eventlog.c uses log uses native endianness. If it
>>> is intentional, and PPC64 has TPM1 logs in big endian
>>
>> Yes, in case of ppc64, the tpm1 code logs are in big endian format.
>
> Thanks. What about tpm2 logs? Is first (specid) event in big endian
> format too, or no?
Formally, according to the TCG specifications, the firmware event log
is little endian.
My opinion (but I may be wrong) ...
It doesn't matter, as long as the platform knows what it did.
When the platform sends the log to the attestation server, it should be
a consistent format, regardless of the endian'ness of the platform.
In my attestation implementation, I use big endian, because that's what
the TPM uses. Thus, I reuse all the TPM and TSS marshaling and
unmarshaling code.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
next prev parent reply other threads:[~2017-03-31 14:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 7:43 [PATCH 0/4] Add support for TPM2 log reported via ACPI table Petr Vandrovec
[not found] ` <20170329074320.zcbuydd7iydaj3gr-WbvboCQVrrgDIl+Cyo8nDyLysJ1jNyTM@public.gmane.org>
2017-03-30 4:51 ` Nayna
[not found] ` <58DC8EBF.40700-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2017-03-30 8:13 ` Petr Vandrovec
[not found] ` <58DCBE41.3060507-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2017-03-31 14:43 ` Ken Goldman [this message]
2017-04-03 18:31 ` Nayna
2017-03-31 8:15 ` Jarkko Sakkinen
2017-03-31 18:39 ` Jarkko Sakkinen
[not found] ` <20170331183923.mmtggrj2bcybwajz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-03-31 21:18 ` Petr Vandrovec
[not found] ` <58DEC79F.6000805-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2017-04-03 19:11 ` Jarkko Sakkinen
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=1e3208ff-2565-7d11-6670-1b1e72cf8e5c@linux.vnet.ibm.com \
--to=kgold-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 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).