Documentation ¶
Index ¶
- Variables
- func CreateSRK(tpm transport.TPMCloser) (*tpm2.AuthHandle, *tpm2.TPMTPublic, error)
- func EncodeKey(k *Key) ([]byte, error)
- 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, error)
- func SupportedECCAlgorithms(tpm transport.TPMCloser) []int
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOldKey = errors.New("old format on key")
)
Functions ¶
func CreateSRK ¶
func CreateSRK(tpm transport.TPMCloser) (*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 ¶
func SupportedECCAlgorithms ¶ added in v0.3.0
Types ¶
type Key ¶
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.