tcgbios: Use The proper sha function for each PCR bank
tcgbios: Use The proper sha function for each PCR bank

Instead of just using sha256 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 <5c96973112e540fb909b13997fcd087e5bfbee96@linux.ibm.com>
Signed-off-by: Alexey Kardashevskiy <ac1fc56530d7d037e1ea666f130daca22d72f964@ozlabs.ru>

qemu/SLOF,aik/SLOF,stefanberger/SLOF-tpm,aik/SLOF,qemu/SLOF,qemu/SLOF,stefanberger/SLOF-tpm,stefanberger/SLOF-tpm,aik/SLOF