package
0.0.0-20240723192418-397b19c8a77e
Repository: https://github.com/snapcore/secboot.git
Documentation: pkg.go.dev

# Functions

FormatPCRValuesFromPCRProtectionProfile returns a formatted string of PCR values contained within the supplied PCR profile.
MakePCREventDigest creates a digest for a single PCR event by hashing the supplied string with the specified algorithm.
MakePCRValueFromEvents creates a PCR value by hashing the supplied events with the specified algorithm and then computing the PCR value that would result by extending these events.
MockEKTemplate overrides the tcg.EKTemplate variable, used to define the standard EK template.
MockOpenDefaultTctiFn overrides the tcti.OpenDefault function, used to create a connection to the default TPM.
No description provided by the author
No description provided by the author
NewTPMConnectionFromExistingT creates a new connection and TCTI from the supplied ones.
OpenTPMConnection returns a new TPM connection for testing.
OpenTPMConnectionT returns a new TPM connection for testing.
OpenTPMSimulatorConnection returns a new TPM connection to the TPM simulator on the port specified by tpm2_testutil.MssimPort.
OpenTPMSimulatorConnectionT returns a new TPM connection to the TPM simulator on the port specified by tpm2_testutil.MssimPort.
ResetTPMSimulatorT issues a Shutdown -> Reset -> Startup cycle of the TPM simulator and returns a newly initialized TPM connection.
No description provided by the author

# Constants

TPMFeatureClear indicates that the test uses the TPM2_Clear command.
TPMFeatureEndorsementHierarchy indicates that the test requires the use of the endorsement hierarchy.
TPMFeatureLockoutHierarchy indicates that the test requires the use of the lockout hierarchy.
TPMFeatureNV indicates that the test makes use of a command that may write to NV.
TPMFeatureOwnerHierarchy indicates that the test requires the use of the storage hierarchy.
TPMFeaturePCR indicates that the test requires the use of a PCR.
TPMFeaturePlatformHierarchy indicates that the test requires the use of the platform hierarchy.

# Structs

TCTI is a wrapper around tpm2_testutil.TCTI that provides a mechanism to keep the underlying connection open when Close is called.
TPMSimulatorTest is a base test suite for all tests that require a TPM simulator.
TPMTest is a base test suite for all tests that require a TPM and are able to execute on a real TPM or a simulator.