keys

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func ParseTufRoleNameOffline added in v0.30.0

func ParseTufRoleNameOffline(s string) string

func ParseTufRoleNameOnline added in v0.32.0

func ParseTufRoleNameOnline(s string) string

func SignTufMeta added in v0.30.0

func SignTufMeta(metaBytes []byte, signers ...TufSigner) ([]tuf.Signature, error)

Types

type OfflineCreds added in v0.19.1

type OfflineCreds map[string][]byte

func GetOfflineCreds added in v0.19.1

func GetOfflineCreds(credsFile string) (OfflineCreds, error)

type TufKeyPair added in v0.30.0

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

type TufKeyType added in v0.30.0

type TufKeyType interface {
	Name() string
	SigName() string
	SigOpts() crypto.SignerOpts
	GenerateKey() (crypto.Signer, error)
	ParseKey(string) (crypto.Signer, error)
	SaveKeyPair(crypto.Signer) (priv, pub string, err error)
}

func ParseTufKeyType added in v0.30.0

func ParseTufKeyType(s string) TufKeyType

type TufSigner added in v0.19.1

type TufSigner struct {
	Id   string
	Type TufKeyType
	Key  crypto.Signer
}

func FindOneTufSigner added in v0.34.1

func FindOneTufSigner(root *client.AtsTufRoot, creds OfflineCreds, keyids []string) (signer TufSigner, err error)

Jump to

Keyboard shortcuts

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