tpm2: simplify tpm2_seal() blob creation
authorDan Streetman <ddstreet@ieee.org>
Mon, 19 Dec 2022 14:58:05 +0000 (09:58 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 17 Feb 2023 14:02:15 +0000 (14:02 +0000)
commite8858f1104d87179abd8d9c413292e42f1eaf7c0
tree3002d4c15093d9a9994465815bffaf29b89374d9
parenta133d2c366ea0661f4c57c9ddda3e6742dfc2566
tpm2: simplify tpm2_seal() blob creation

TPM2 marshalling will never increase the total size, only possibly decrease.
There is no need for checking for insufficient size if the buffer size
is set to the sizeof both objects to be marshalled.
src/shared/tpm2-util.c