1 | =head1 NAME
|
---|
2 |
|
---|
3 | TPMLIB_SetBufferSize - Set the TPM's I/O buffer size
|
---|
4 |
|
---|
5 | =head1 LIBRARY
|
---|
6 |
|
---|
7 | TPM library (libtpms, -ltpms)
|
---|
8 |
|
---|
9 | =head1 SYNOPSIS
|
---|
10 |
|
---|
11 | B<#include <libtpms/tpm_library.h>>
|
---|
12 |
|
---|
13 | B<uint32_t TPMLIB_SetBufferSize(uint32_t, uint32_t *, uint32_t *);>
|
---|
14 |
|
---|
15 | =head1 DESCRIPTION
|
---|
16 |
|
---|
17 | The B<TPMLIB_SetBufferSize()> function sets the size of the buffer
|
---|
18 | the TPM can use for input and output and that it advertises to users.
|
---|
19 | It also allows to get the minimum and maximum supported buffer
|
---|
20 | size.
|
---|
21 |
|
---|
22 | If 0 is given on input, the currently used buffer size is returned.
|
---|
23 | Any other number will try to change the buffer size. The returned
|
---|
24 | size may be smaller than the requested one, if the requested one was
|
---|
25 | above a maximum. The returned size may be larger than the requested
|
---|
26 | one, if the requested one was below a minimum.
|
---|
27 |
|
---|
28 | This function must be called after B<TPMLIB_ChooseTPMVersion()> has
|
---|
29 | been called. It should not be called after B<TPMLIB_MainInit()> has
|
---|
30 | been called but can again be called once B<TPMLIB_Terminate()> has
|
---|
31 | been called.
|
---|
32 |
|
---|
33 | =head1 SEE ALSO
|
---|
34 |
|
---|
35 | B<TPMLIB_ChooseTPMVersion>(3), B<TPMLIB_MainInit>(3), B<TPMLIB_Terminate>(3)
|
---|
36 |
|
---|
37 | =cut
|
---|