tpm2: change tpm2_tpm*_pcr_selection_to_mask() to return mask
authorDan Streetman <ddstreet@ieee.org>
Tue, 1 Aug 2023 16:55:17 +0000 (12:55 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 4 Aug 2023 14:55:53 +0000 (10:55 -0400)
commitdbaae766c7eaacdfb19ee23600f0f382a16ae33b
treea13eb365d5104fb7f2f621af981caefe15143a57
parentc9df1fb119b3e57b0468457cc681920f453ff6e7
tpm2: change tpm2_tpm*_pcr_selection_to_mask() to return mask

This simplifies use of the functions, as well as avoiding the use of -ENOENT
from tpm2_tpml_pcr_selection_to_mask().
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c