Issue #421 has been updated by Krystian Hebel.

> I don't know what skiboot is... is that coreboot? Do they have a real use 
> case for having both hashes in the log or is it just another bootloader where 
> someone decided "might as well write all the hashes in advance just because 
> the spec technically allows for it"?
>
> My question is: is there any user of coreboot right now who would actually 
> turn on multiple hashes for production purposes because otherwise something 
> they need doesn't work for them?

Skiboot is a payload currently used by OpenPOWER systems [1], like QEMU POWER9 
or Talos II that is slowly being upstreamed [2]. With additional changes both 
to format of log created by coreboot and to the payload itself (latter breaks 
TPM2.0 logs), it could be persuaded to work with one hash, we did that as PoC 
for our setup that uses TPM1.2 (due to supply chain issues and low ability of 
I2C TPMs in general). However, instead of following existing standards, be it 
TCG or coreboot, such approach creates yet another one. Having the ability to 
use more than one would make transition to TPM2.0 easier, if not no-op. Since 
we are going to have to change event log generation code anyway, we want to do 
it properly, instead of putting another half-measure in place.

So no, there are no users of coreboot that would use it right now, but there 
will (hopefully) soon be. As this is a change that will impact many platforms, 
we want to push it upstream sooner rather than later, leaving as much time for 
review and testing as possible.

[1] https://github.com/coreboot/coreboot/tree/master/payloads/external/skiboot
[2] https://review.coreboot.org/q/topic:talos-2

----------------------------------------
Cleanup #421: Change API of functions taking hash as an argument
https://ticket.coreboot.org/issues/421#change-1217

* Author: Krystian Hebel
* Status: New
* Priority: Normal
* Target version: none
* Start date: 2022-10-12
----------------------------------------
All existing functions that take a digest as an input assume that only one 
hashing algorithm is used at a time. Crypto agile format entry can (and should) 
log every used PCR bank in one entry for a given measurement. To make it work, 
some of the arguments must be changed, e.g.:

- pass number of algorithms used;
- instead of algorithm ID, pass a pointer to array of such IDs, with size equal 
to above;
- instead of hash, pass a pointer to array of hashes, with size and order as 
above.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account
_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to