Skip to contentSkip to conversation

PCR missing SHA-512 support

tpm2 Ricardo Araújo <ricardo at lsd.ufcg.edu.br> 1 participant 2 messages May 25, 2018

lore
Share & tools
lore

Ricardo Araújo <ricardo at lsd.ufcg.edu.br>

#0 lore raw

Hi Dan,

I've been using [1] with [2] as simulator for playing around with TPM 2.0 features, because I can wire it to QEMU and launch a VM with EDK2 UEFI. No precompiled packages for any of these.

So I was testing master version from both tpm2-tools and abrmd with the release candidates for tss and I noticed this error on tpm2_pcrlist after this commit [3] enabling SHA512 and I related to this thread...

I'm not sure yet if this is a simulator problem or something on tools/abrmd/tss side... for now I'll test with another version and hopefully come back with more info. From a noob perspective, the error seems to be the same at [4], maybe I should try the same trick and see what happens.

Ricardo

[1] - https://github.com/stefanberger/swtpm/tree/tpm2-preview.v2
[2] - https://github.com/stefanberger/libtpms/tree/tpm2-preview.rev146.v2
[3] - https://github.com/stefanberger/libtpms/commit/37f24d5c7b3513045abcc4a0d283b9f25b75d039
[4] - https://github.com/tpm2-software/tpm2-tools/issues/1021

-----Mensagem original-----
De: Anderson, Daniel [mailto:daniel.anderson(a)intel.com] Enviada em: quinta-feira, 24 de maio de 2018 18:02
Para: Ricardo Araújo <ricardo(a)lsd.ufcg.edu.br>
Cc: tpm2(a)lists.01.org
Assunto: RE: [tpm2] PCR missing SHA-512 support

Ricardo,

No I have not seen that before.

This is just a hunch.  But I suspect that the code needs to be recompiled with your simulator (or real TPM).

Some more information would be useful--does your TPM (real or virtual or simulated) have a SHA-512 PCR bank?

Did you compile it on the same machine?  Or did you compile elsewhere or use a precompiled package or something like that?

Dan

From: Ricardo Araújo [mailto:ricardo(a)lsd.ufcg.edu.br]

Quoted 7 lines

Not sure it is the same simulator, but I'm using
https://github.com/stefanberger/libtpms/tree/tpm2-preview.rev146.v2 and after SHA-512 was enabled (yesterday) tpm2_pcrlist is crashing with this error:
WARNING:marshal:src/tss2-mu/tpml-types.c:197:Tss2_MU_TPML_PCR_SELECTION_Unmarshal() count too big
ERROR: Tss2_Sys_GetCapability(0x80011) - sys:Response is malformed

#1 lore raw

Ricardo,

My guess is it is a tpm2-tss or tpm2-tools bug, not a simulator issue.

That is especially true since we tend to use the Microsoft/IBM tpm2 simulator, which, by default, has the SHA-512 PCR bank disabled.

Yes, it looks like this:
https://github.com/tpm2-software/tpm2-tools/issues/1021

Could you add your information to issue #1021 or file a new issue if it is different?

Dan