Documentation
¶
Index ¶
- func CreateSRK(tpm transport.TPMCloser, keytype tpm2.TPMAlgID) (*tpm2.AuthHandle, *tpm2.TPMTPublic, error)
- func EncodeKey(k *Key) []byte
- func LoadKey(tpm transport.TPMCloser, key *Key) (*tpm2.AuthHandle, error)
- func LoadKeyWithParent(tpm transport.TPMCloser, parent tpm2.AuthHandle, key *Key) (*tpm2.AuthHandle, error)
- func MarshalKey(k *Key) []byte
- type Key
- type PINStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSRK ¶
func CreateSRK(tpm transport.TPMCloser, keytype tpm2.TPMAlgID) (*tpm2.AuthHandle, *tpm2.TPMTPublic, error)
Creates a Storage Key, or return the loaded storage key
func LoadKeyWithParent ¶
func LoadKeyWithParent(tpm transport.TPMCloser, parent tpm2.AuthHandle, key *Key) (*tpm2.AuthHandle, error)
func MarshalKey ¶
Types ¶
type Key ¶
type Key struct {
Version uint8
PIN PINStatus
Type tpm2.TPMAlgID
Private tpm2.TPM2BPrivate
Public tpm2.TPM2BPublic
Comment []byte
}
func UnmarshalKey ¶
func (*Key) AuthorizedKey ¶ added in v0.2.0
func (*Key) Fingerprint ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.