TPMLIB_SetBufferSize(3)

πŸ’… TPMLIB_SetBufferSize(3) πŸ’…

okay bestie, welcome to the TPMLIB_SetBufferSize(3) manual page from libtpms β€” yes, that libtpms page, and we’re gonna make buffer sizes make sense ✨


πŸ’– NAME πŸ’–

TPMLIB_SetBufferSize β€” set the TPM's I/O buffer size πŸŽ€

🌸 LIBRARY 🌸

TPM library (libtpms, -ltpms) 🫢

✨ SYNOPSIS ✨

#include <libtpms/tpm_library.h>

uint32_t TPMLIB_SetBufferSize(uint32_t, uint32_t *, uint32_t *);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so TPMLIB_SetBufferSize() sets the size of the buffer the TPM can use for input and output and that it advertises to users. It also allows you to get the minimum and maximum supported buffer size. πŸ‘‘

If 0 is given on input, the currently used buffer size is returned. Any other number will try to change the buffer size. The returned size may be smaller than the requested one, if the requested one was above a maximum. The returned size may be larger than the requested one, if the requested one was below a minimum. πŸŽ€

bestie, timing check πŸ‘€: this function must be called after TPMLIB_ChooseTPMVersion() has been called. It should not be called after TPMLIB_MainInit() has been called but can again be called once TPMLIB_Terminate() has been called. πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


mwah πŸ’‹ that’s the whole page β€” brought to you by source/version libtpms, dated 2026-01-02, for TPMLIB_SetBufferSize(3). byeee 🫢✨

πŸ“¦ where this page comes from