VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.6/man/man3/TPMLIB_ValidateState.pod@ 104805

Last change on this file since 104805 was 91612, checked in by vboxsync, 3 years ago

src/libs: Export libtpms-0.9.0, bugref:10078

File size: 1.3 KB
Line 
1=head1 NAME
2
3TPMLIB_ValidateState - Validate the state blobs of the TPM
4
5=head1 LIBRARY
6
7TPM library (libtpms, -ltpms)
8
9=head1 SYNOPSIS
10
11B<#include <libtpms/tpm_library.h>>
12
13B<uint32_t TPMLIB_ValidateState(TPMLIB_StateType st,
14 unsigned int flags);
15>
16
17=head1 DESCRIPTION
18
19The B<TPMLIB_ValidateState()> function allows to validate the
20state blobs that the TPM would read upon B<TPMLIB_MainInit()> or
21once the TPM_Startup command has been sent to it.
22
23This function is useful for TPM state migration between possibly
24different version of libtpms. Here the target libtpms needs to be
25able to determine whether it can support the version of blobs that were
26migrated and if this is not the case, the caller can refuse the
27migration.
28
29The B<tpmlib_state> parameter can be a logical 'or' of one or
30multiple of of the following: B<TPMLIB_STATE_PERMANENT>,
31B<TPMLIB_STATE_VOLATILE>, or B<TPMLIB_STATE_SAVE_STATE>.
32The B<flags> parameter is currently not used and should be set to 0.
33
34The first state blob that should be loaded is the permanent state,
35since for example the volatile state requires it to be available
36for validation.
37
38This function should be called before B<TPMLIB_MainInit()> is invoked.
39
40=head1 SEE ALSO
41
42B<TPMLIB_MainInit>(3), B<TPMLIB_Terminate>(3)
43
44=cut
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette