key

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOldKey = errors.New("old format on key")
)

Functions

This section is empty.

Types

type SSHTPMKey added in v0.5.0

type SSHTPMKey struct {
	*keyfile.TPMKey
	Certificate *ssh.Certificate
}

SSHTPMKey is a wrapper for TPMKey implementing the ssh.PublicKey specific parts

func Decode added in v0.5.0

func Decode(b []byte) (*SSHTPMKey, error)

func NewImportedSSHTPMKey added in v0.5.0

func NewImportedSSHTPMKey(tpm transport.TPMCloser, pk any, ownerauth []byte, fn ...keyfile.TPMKeyOption) (*SSHTPMKey, error)

This assumes we are just getting a local PK.

func NewSSHTPMKey added in v0.5.0

func NewSSHTPMKey(tpm transport.TPMCloser, alg tpm2.TPMAlgID, bits int, ownerauth []byte, fn ...keyfile.TPMKeyOption) (*SSHTPMKey, error)

func (*SSHTPMKey) AuthorizedKey added in v0.5.0

func (k *SSHTPMKey) AuthorizedKey() []byte

func (*SSHTPMKey) Fingerprint added in v0.5.0

func (k *SSHTPMKey) Fingerprint() string

func (*SSHTPMKey) SSHPublicKey added in v0.5.0

func (k *SSHTPMKey) SSHPublicKey() (ssh.PublicKey, error)

Jump to

Keyboard shortcuts

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