agent

package
v0.0.0-...-d053c91 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOperationUnsupported = errors.New("operation unsupported")

Functions

func ServeAgent

func ServeAgent(socketPath string, subAgents []SubAgent)

Types

type Agent

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

func New

func New() *Agent

func (*Agent) Add

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

func (*Agent) AddEncryptionKey

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

func (*Agent) Close

func (a *Agent) Close()

func (*Agent) DecryptBytes

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

func (*Agent) EncryptBytes

func (a *Agent) EncryptBytes(contents []byte, nonce *[24]byte, source, target *[32]byte) ([]byte, error)

func (*Agent) EncryptBytesForExtension

func (a *Agent) EncryptBytesForExtension(contents []byte) ([]byte, 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) ListEncryptionKeys

func (a *Agent) ListEncryptionKeys(_ []byte) ([]byte, 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) RemoveAllEncryptionKeys

func (a *Agent) RemoveAllEncryptionKeys(_ []byte) ([]byte, error)

func (*Agent) RemoveEncryptionKey

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

func (*Agent) Sign

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

func (*Agent) SignWithFlags

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

func (*Agent) Signers

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

func (*Agent) Unlock

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

type ExtensionEncryptionRequest

type ExtensionEncryptionRequest struct {
	Nonce    *[24]byte
	Source   *[32]byte
	Target   *[32]byte
	Contents []byte
}

type Key

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

type Message

type Message struct {
	Contents []byte
	Nonce    *[24]byte
	Source   *[32]byte
	Target   *[32]byte
}

type SubAgent

type SubAgent struct {
	Agent agent.Agent
	Name  string
}

SubAgent represents an external ssh-agent that request can be sent to (to be used for the agent proxy function)

Jump to

Keyboard shortcuts

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