sigstore

package
v5.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSigner added in v5.24.0

func NewSigner(opts ...Option) (*signer.Signer, error)

Types

type GenerateKeyPairResult added in v5.24.0

type GenerateKeyPairResult struct {
	PublicKey  []byte
	PrivateKey []byte
}

GenerateKeyPairResult is a struct to ensure the private and public parts can not be confused by the caller.

func GenerateKeyPair added in v5.24.0

func GenerateKeyPair(passphrase []byte) (*GenerateKeyPairResult, error)

GenerateKeyPair generates a public/private key pair usable for signing images using the sigstore format, and returns key representations suitable for storing in long-term files (with the private key encrypted using the provided passphrase). The specific key kind (e.g. algorithm, size), as well as the file format, are unspecified by this API, and can change with best practices over time.

type Option added in v5.24.0

type Option = internal.Option

func WithPrivateKeyFile added in v5.24.0

func WithPrivateKeyFile(file string, passphrase []byte) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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