agent

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 LoadKeys

func LoadKeys(keyDir string) (map[string]*key.Key, error)

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(listener *net.UnixListener, agents []agent.ExtendedAgent, tpmFetch func() transport.TPMCloser, pin func(*key.Key) ([]byte, error)) *Agent

func (*Agent) Add

func (a *Agent) Add(key agent.AddedKey) error

Unsupported functions

func (*Agent) AddKey

func (a *Agent) AddKey(k *key.Key) error

func (*Agent) AddTPMKey added in v0.2.0

func (a *Agent) AddTPMKey(contents []byte) ([]byte, error)

func (*Agent) Close

func (a *Agent) Close() error

func (*Agent) Extension

func (a *Agent) Extension(extensionType string, contents []byte) ([]byte, error)

func (*Agent) List

func (a *Agent) List() ([]*agent.Key, error)

func (*Agent) LoadKeys

func (a *Agent) LoadKeys(keyDir string) error

func (*Agent) Lock

func (a *Agent) Lock(passphrase []byte) error

func (*Agent) Remove

func (a *Agent) Remove(key ssh.PublicKey) error

func (*Agent) RemoveAll

func (a *Agent) RemoveAll() error

func (*Agent) Sign

func (a *Agent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)

func (*Agent) SignWithFlags

func (a *Agent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)

func (*Agent) Signers

func (a *Agent) Signers() ([]ssh.Signer, error)

func (*Agent) Stop

func (a *Agent) Stop()

func (*Agent) Unlock

func (a *Agent) Unlock(passphrase []byte) error

func (*Agent) Wait

func (a *Agent) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL