Thomas Way 336aee0fdb
fix: use tpm2 hash algorithm constants and allow non-SHA-256 PCRs
The conversion from TPM 2 hash algorithm to Go crypto algorithm will fail for
uncommon algorithms like SM3256. This can be avoided by checking the constants
directly, rather than converting them. It should also be fine to allow some non
SHA-256 PCRs.

Fixes: #7810

Signed-off-by: Thomas Way <thomas@6f.io>
Signed-off-by: Noel Georgi <git@frezbo.dev>
2023-10-04 01:02:20 +05:30
..
2023-09-22 12:13:13 +04:00
2023-07-12 20:41:28 +05:30
2023-09-22 12:13:13 +04:00
2023-09-22 12:13:13 +04:00
2023-09-22 12:13:13 +04:00
2023-07-18 12:58:45 +05:30
2023-08-03 21:17:58 +04:00
2023-09-22 12:13:13 +04:00