libtpms/src
Stefan Berger 747593d789 tpm2: Only write the necessary number of bytes of command bitmaps
Only write the necessary number of bytes of the ppList and auditCommands
bitmaps. The entries in both of these bitmaps are set by a command's
index and the necessary number of bytes can be determined by finding the
command with the highest command code that is enabled in the current
profile (1). This in turn can be found by by searching for the last byte
in the enableCommandsByIdx bitmap that has any bit set.

1) It would be possible to skip writing these arrays entirely if they have
   no bits set. The unmarshalling functions would clear the arrays.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2026-03-10 17:19:12 -04:00
..
tpm2 tpm2: Only write the necessary number of bytes of command bitmaps 2026-03-10 17:19:12 -04:00
tpm12 tpm12: Replace include of engine.h with err.h 2024-07-08 16:45:33 -04:00
compiler.h tpm2: Remove unused function parameters or mark them as unused 2024-09-24 09:32:02 -04:00
disabled_interface.c tpm2: Remove unused function parameters or mark them as unused 2024-09-24 09:32:02 -04:00
libtpms.syms tpm2: Implement TPMLIB_WasManufactured API call 2024-08-30 16:25:47 -04:00
Makefile.am tpm2: Implement support for RuntimeAttributes (StateFormatLevel 7) 2024-09-03 10:28:55 -04:00
test.syms build-sys: work around broken linker when testing --version-script support 2018-08-30 21:45:16 +00:00
tpm_debug.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_debug.h tpm: #undef printf in case it is #define'd (OSS-Fuzz) 2022-04-08 08:35:19 -04:00
tpm_library_conf.h Fix many misspellings 2021-03-02 08:20:25 -05:00
tpm_library_intern.h tpm2: Wrap asprintf to avoid static analyzer warnings 2024-10-03 14:35:16 -04:00
tpm_library.c Fix a compilation error in TPMLIB_GetPlaintext 2026-01-02 12:27:06 -05:00
tpm_memory.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_nvfile.c nvfile: Free allocated memory on failure 2022-05-20 09:57:09 -04:00
tpm_nvfile.h Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_tpm2_interface.c tpm2: Wrap asprintf to avoid static analyzer warnings 2024-10-03 14:35:16 -04:00
tpm_tpm2_tis.c tpm2: rev155: Major refactoring of header files 2020-04-14 16:03:45 -04:00
tpm_tpm12_interface.c tpm2: Remove unused function parameters or mark them as unused 2024-09-24 09:32:02 -04:00
tpm_tpm12_tis.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00