tpm2: replace magic number in hmac_sensitive initialization
authorDan Streetman <ddstreet@ieee.org>
Thu, 8 Jun 2023 18:06:46 +0000 (14:06 -0400)
committerDan Streetman <ddstreet@ieee.org>
Wed, 5 Jul 2023 21:33:55 +0000 (17:33 -0400)
commit180444b8851a8654771361b1494b5db286d8724e
tree3676fdf4fb1c503ae08df37270af924eda350cae
parentee6a8713abbe185f7c8aaedbbc06cc27eefe9072
tpm2: replace magic number in hmac_sensitive initialization

Instead of setting hmac_sensitive.sensitive.data.size to '32' use the actual
hash size as set in the hmac_template.
src/shared/tpm2-util.c