Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESYS: StartAuthSession bind auth trailing zeroes
When StartAuthSession is called with a bind entity with a auth value containing trailing zeroes, the HMAC or policy session computation of ESYS does not match the computation on the TPM2. The fix is to remove trailing zeroes from the auth value according to the specification (TPM2 Architecture, 19.6.5, Note 2) before computation of the session key. The fixed bug is especially tricky as a randomly generated auth value of the bind object can cause HMAC or policy session to fail occassionally. Signed-off-by: Stefan Thöni <stefan.thoeni@gapfruit.com>
- Loading branch information