Documentation ¶
Index ¶
- Variables
- func LoadKeys(keyDir string) ([]*key.SSHTPMKey, error)
- func MarshalTPMKeyMsg(cert *sshagent.AddedKey) []byte
- type AddedKey
- type Agent
- func (a *Agent) Add(key agent.AddedKey) error
- func (a *Agent) AddKey(k *key.SSHTPMKey) error
- func (a *Agent) AddTPMKey(addedkey []byte) ([]byte, error)
- func (a *Agent) Close() error
- func (a *Agent) Extension(extensionType string, contents []byte) ([]byte, error)
- func (a *Agent) List() ([]*agent.Key, error)
- func (a *Agent) LoadKeys(keyDir string) error
- func (a *Agent) Lock(passphrase []byte) error
- func (a *Agent) Remove(sshkey ssh.PublicKey) error
- func (a *Agent) RemoveAll() error
- func (a *Agent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (a *Agent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
- func (a *Agent) Signers() ([]ssh.Signer, error)
- func (a *Agent) Stop()
- func (a *Agent) Unlock(passphrase []byte) error
- func (a *Agent) Wait()
- type TPMKeyMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOperationUnsupported = errors.New("operation unsupported")
View Source
var SSH_TPM_AGENT_ADD = "tpm-add-key"
Functions ¶
func MarshalTPMKeyMsg ¶ added in v0.6.0
Types ¶
type AddedKey ¶ added in v0.6.0
type AddedKey struct { PrivateKey *keyfile.TPMKey Certificate *ssh.Certificate Comment string LifetimeSecs uint32 ConfirmBeforeUse bool ConstraintExtensions []sshagent.ConstraintExtension }
func ParseTPMKeyMsg ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.