wolfSSL / wolfTPM

wolfTPM is a highly portable TPM 2.0 library, designed for embedded use.
https://www.wolfssl.com
GNU General Public License v2.0
232 stars 56 forks source link

Quickfix of invalid pcrIndex number #165

Closed tomoveu closed 3 years ago

tomoveu commented 3 years ago

Typical TPM 2.0 implementations have only 24 PCR registers.

Before, wolfTPM2_ReadPCR would fail with TPM_RC_VALUE if invalid value is given.

Per a user request, we modify wolfTPM2_ReadPCR, so it does not accept invalid values.

Signed-off-by: Dimitar Tomov dimi@wolfssl.com

tomoveu commented 3 years ago

Hi @elms, Could you please review and merge if good?

I saw that we are both on the same wolfSSL forum thread where this originated.