]> xenbits.xensource.com Git - seabios.git/commit
tcgbios: Use The proper sha function for each PCR bank
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 14 Jun 2021 17:35:49 +0000 (13:35 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 30 Jun 2021 20:58:48 +0000 (16:58 -0400)
commit1be65c56c603163b07ebcec3bc88aa7ae0b1bb80
tree8d679e0e5b30125357510ad81f0795db933493c9
parent4e57a54703a5a28681bb86288a971cb83a05359c
tcgbios: Use The proper sha function for each PCR bank

Instead of just using sha1 for all PCR banks (and truncating
the value or zero-padding it) use the proper hash function for
each one of the banks. For unimplemented hashes, fill the buffer
with 0xff.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/tcgbios.c