mirror of
https://github.com/google/go-attestation.git
synced 2025-01-29 15:13:51 +00:00
0815f5e221
Using the length of a digest to infer the hash algorithm is somewhat fragile - if we end up with multiple hash algorithms that share the same digest length, things will break. Instead, pass more complete digest information through to relevant functions and figure things out by mapping the TPM hash algorithm to the appropriate Golang type.