Documentation
¶
Index ¶
- func GenerateKeyFromPassword(username, password string) (key *[32]byte)
- func GenerateKeyPair() ([]byte, []byte, error)
- func GeneratePersistantHandle(device string) (uint32, error)
- func GetTPMDevice() (string, error)
- func MacWithPasswordKey(key *[32]byte, msgs ...[]byte) ([]byte, error)
- func NewAESGCM(key []byte) (cipher.AEAD, error)
- func NewTPMError(reason string, original error) error
- func SessionKeysAsClient(clientPrivateKey, clientPublicKey, serverPublicKey []byte) (receiveKey, sendKey []byte, err error)
- func SessionKeysAsServer(serverPrivateKey, serverPublicKey, clientPublicKey []byte) (receiveKey, sendKey []byte, err error)
- func TPMAlgIDString(alg tpm2.TPMAlgID) string
- type ErrNotImplementedYet
- type TPMAccesPoint
- type TPMError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyFromPassword ¶
func GenerateKeyPair ¶
func GetTPMDevice ¶
func NewTPMError ¶
func SessionKeysAsClient ¶ added in v0.6.0
func SessionKeysAsServer ¶ added in v0.6.0
func TPMAlgIDString ¶
Types ¶
type ErrNotImplementedYet ¶
type ErrNotImplementedYet struct {
// contains filtered or unexported fields
}
func (ErrNotImplementedYet) Error ¶
func (err ErrNotImplementedYet) Error() string
type TPMAccesPoint ¶
type TPMAccesPoint struct {
// contains filtered or unexported fields
}
func NewTPMAccesPoint ¶
func NewTPMAccesPoint(device string) *TPMAccesPoint
func (*TPMAccesPoint) GetPublicKey ¶
func (t *TPMAccesPoint) GetPublicKey() ([]byte, error)
func (*TPMAccesPoint) RemovePersistant ¶
func (t *TPMAccesPoint) RemovePersistant() error
func (*TPMAccesPoint) SetHandle ¶
func (t *TPMAccesPoint) SetHandle(h uint32)
Click to show internal directories.
Click to hide internal directories.