Documentation
¶
Index ¶
- Variables
- func LoadKeys(keyDir string) ([]key.SSHTPMKeys, error)
- func MarshalTPMKeyMsg(cert *sshagent.AddedKey) []byte
- func ParseTPMKeyMsg(req []byte) (*key.SSHTPMKey, error)
- type Agent
- func (a *Agent) Add(key agent.AddedKey) error
- func (a *Agent) AddHierarchyKeys(hier string) error
- func (a *Agent) AddKey(k *key.SSHTPMKey) error
- func (a *Agent) AddProxyAgent(es agent.ExtendedAgent) 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(keys []key.SSHTPMKeys)
- 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") ErrNoMatchPrivateKeys = errors.New("no private keys match the requested public key") )
View Source
var SSH_TPM_AGENT_ADD = "tpm-add-key"
Functions ¶
func MarshalTPMKeyMsg ¶ added in v0.6.0
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(listener *net.UnixListener, agents []agent.ExtendedAgent, keyring func() *keyring.ThreadKeyring, tpmFetch func() transport.TPMCloser, ownerPassword func() ([]byte, error), pin func(key.SSHTPMKeys) ([]byte, error)) *Agent
func (*Agent) AddHierarchyKeys ¶ added in v0.8.0
func (*Agent) AddProxyAgent ¶ added in v0.8.0
func (a *Agent) AddProxyAgent(es agent.ExtendedAgent) error
func (*Agent) LoadKeys ¶
func (a *Agent) LoadKeys(keys []key.SSHTPMKeys)
func (*Agent) SignWithFlags ¶
Click to show internal directories.
Click to hide internal directories.