-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm2: Implement API call to recreate the SVN base secret
Signed-off-by: Stefan Berger <[email protected]>
- Loading branch information
1 parent
0d71a57
commit 646931e
Showing
13 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
=head1 NAME | ||
|
||
TPMLIB_RecreateSvnBaseSecret - Recreate a TPM 2's SVN-limited hierarchy base secret | ||
|
||
=head1 LIBRARY | ||
|
||
TPM library (libtpms, -ltpms) | ||
|
||
=head1 SYNOPSIS | ||
|
||
B<#include <libtpms/tpm_types.h>> | ||
|
||
B<#include <libtpms/tpm_library.h>> | ||
|
||
B<#include <libtpms/tpm_error.h>> | ||
|
||
B<TPM_RESULT TPMLIB_RecreateSvnBaseSecret(void);> | ||
|
||
=head1 DESCRIPTION | ||
|
||
B<TPMLIB_RecreateSvnBaseSecret()> is used to recreate the internal base SVN | ||
secret that is used for by the SVN-limited hierachy to derive its secret | ||
from by adding the 16bit SVN number to it. Since the SVN base secret is part | ||
of the permanent state of a TPM 2, this function should be called after | ||
loading the permanent state, so for example right after | ||
I<TPMLIB_MainInit()>, in order to replace the old SVN base secret with a new | ||
one. | ||
|
||
The side effect of recreating the base SVN secret is that previous firmware | ||
SVN secrets cannot be created anymore and objects (keys) associated with the | ||
SVN-limited hierachy cannot be used anymore. | ||
|
||
=head1 SEE ALSO | ||
|
||
B<TPMLIB_ChooseTPMVersion>, B<TPMLIB_MainInit>(3) | ||
|
||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters