mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-11 16:51:29 +00:00
The new isNameHashDefined session attribute allows to better differentiate between cpHash and nameHash being set. Both of these are part of a union. However, using this new flag would potentially introduce compatibility issues for older versions that did not have this flag and if an older session was to be used with this newer version of TPM 2. To avoid this use the current stateFormatLevel (4) to decide whether to set and get the isNameHashDefined session attribute that did not exists before stateFormatLevel 4. Instrument the code accordingly so that expected behavior of old TPM 2 state (null profile) does not change while new TPM 2 state with the new default-v1 profile may use the new behavor. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| .. | ||
| man3 | ||
| Makefile.am | ||