Patch from: https://github.com/tpm2-software/tpm2-tss-engine/commit/766505bf5c943c614fd246d27d1e5cd66543250b
Ref:https://github.com/tpm2-software/tpm2-tss-engine/pull/283