Currently the tpm_hash_alg option is used in the following places:
- Hash algorithm used for the AK
- Hash algorithm used for signature scheme
- PCR selection for quotes
The first two are loosely tied together, but the selection of which type of PCRs should be included in the quote should be independent.
My proposed split would be:
pcr_hash_alg: selection of the PCR hash algorithm
tpm_hash_alg: by default set to auto or default which just uses the same as the EK. For the signing we should be able to use the option set in the AK and not needing to specify it separately for singing.