This patch ensures that the digest size returned by the TPM during a PCR
read matches the size of the algorithm passed as argument to
tpm2_pcr_read(). The check is performed after information about the PCR
banks has been retrieved.
Signed-off-by: Roberto Sassu <roberto.sassu@xxxxxxxxxx>