keys

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPrivKey added in v0.19.1

func FindPrivKey(pubkey string, creds OfflineCreds) (*rsa.PrivateKey, error)

func NewCommand

func NewCommand() *cobra.Command

func SignMeta added in v0.19.1

func SignMeta(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 TufSigner added in v0.19.1

type TufSigner struct {
	Id  string
	Key *rsa.PrivateKey
}

Jump to

Keyboard shortcuts

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