Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OIDOldLoadableKey = encasn1.ObjectIdentifier{2, 23, 133, 10, 2} // id-loadablekey OBJECT IDENTIFIER ::= {id-tpmkey 3} OIDLoadableKey = encasn1.ObjectIdentifier{2, 23, 133, 10, 1, 3} // id-importablekey OBJECT IDENTIFIER ::= {id-tpmkey 4} OIDImportbleKey = encasn1.ObjectIdentifier{2, 23, 133, 10, 1, 4} // id-sealedkey OBJECT IDENTIFIER ::= {id-tpmkey 5} OIDSealedKey = encasn1.ObjectIdentifier{2, 23, 133, 10, 1, 5} )
View Source
var ( TPM_HT_NV_INDEX uint32 = 0x01 TPM_HT_POLICY_SESSION uint32 = 0x03 TPM_HT_PERMANENT uint32 = 0x40 TPM_HT_TRANSIENT uint32 = 0x80 TPM_HT_PERSISTENT uint32 = 0x81 )
View Source
var (
ErrNotTPMKey = errors.New("not a TSS2 PRIVATE KEY")
)
Errors
Functions ¶
Types ¶
type TPMAuthPolicy ¶
type TPMAuthPolicy struct {
// contains filtered or unexported fields
}
type TPMKey ¶
type TPMKey struct { Parent tpm2.TPMHandle Pubkey tpm2.TPMTPublic Privkey tpm2.TPM2BPrivate // contains filtered or unexported fields }
func NewLoadableKey ¶
func NewLoadableKey(public tpm2.TPM2BPublic, private tpm2.TPM2BPrivate, parent tpm2.TPMHandle, emptyAuth bool) (*TPMKey, error)
func (*TPMKey) Description ¶
func (*TPMKey) SetDescription ¶
Click to show internal directories.
Click to hide internal directories.