vtpmmgr: Flush all transient keys
authorJason Andryuk <jandryuk@gmail.com>
Thu, 6 May 2021 13:59:17 +0000 (09:59 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 May 2021 13:49:01 +0000 (14:49 +0100)
commit746d20b112ace151b19f06bd5e1fb3d695d8982e
treed926a9ebd0f1e56cca39d1361c3f23e686c231b7
parentec9596dc534d6869ddcb2fb78a0c5accc91e3f38
vtpmmgr: Flush all transient keys

We're only flushing 2 transients, but there are 3 handles.  Use <= to also
flush the third handle since TRANSIENT_LAST is inclusive

The number of transient handles/keys is hardware dependent, so this
should query for the limit.  And assignment of handles is assumed to be
sequential from the minimum.  That may not be guaranteed, but seems okay
with my tpm2.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
stubdom/vtpmmgr/init.c