From: Tadeusz Struk <tadeusz.struk at intel.com>
To: tpm2@lists.01.org
Subject: Re: [tpm2] PCR missing SHA-512 support
Date: Thu, 10 May 2018 12:17:33 -0700 [thread overview]
Message-ID: <c32408b9-4458-d9bc-e5de-05572f4a94bb@intel.com> (raw)
In-Reply-To: 207C810BE4BA2440832668E0F208BFD3BCAB46@ORSMSX108.amr.corp.intel.com
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
On 05/10/2018 10:09 AM, Anderson, Daniel wrote:
> I was playing around with tpm2_pcrlist and noticed it supports SHA-1, SHA-256, SHA-384, but SHA-512 is missing:
>
>
>
>
>
> tumalo ~/tpm/bin$ tpm2_pcrlist -L sha512:22
>
> WARN: Ignore unsupported bank/algorithm: sha512(0x000d)
>
> ERROR: Unable to run tpm2_pcrlist
>
> tumalo ~/tpm/bin$ tpm2_pcrlist -L sha384:22
>
> sha384:
>
> 22: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
>
>
>
> Then I look in the man page and see SHA-512 is supported.
>
>
>
> Is this a bug or a feature?
>
It is supported, but it looks like the TPM simulator doesn't support SHA512 by default:
Implementation.h:
#define ALG_SHA256 ALG_YES
#define ALG_SHA384 ALG_YES
#define ALG_SHA512 ALG_NO
...
next reply other threads:[~2018-05-10 19:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-10 19:17 Tadeusz Struk [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-05-25 15:03 [tpm2] PCR missing SHA-512 support Anderson, Daniel
2018-05-24 21:02 Anderson, Daniel
2018-05-24 19:04
2018-05-10 20:34 Anderson, Daniel
2018-05-10 17:09 Anderson, Daniel
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=c32408b9-4458-d9bc-e5de-05572f4a94bb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox