crypto

package
v0.0.0-...-cd41289 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package crypto handles key and signer creation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStepsTo

func AddStepsTo(sc *godog.ScenarioContext)

AddStepsTo adds Gherkin steps to the godog ScenarioContext

func GenerateKeyPair

func GenerateKeyPair() (*cosign.KeysBytes, error)

GenerateKeyPair generates a key pair with no password protection

func GenerateKeyPairNamed

func GenerateKeyPairNamed(ctx context.Context, name string) (context.Context, error)

GenerateKeyPairNamed generates a key pair and stores it in the Context

func PublicKeysFrom

func PublicKeysFrom(ctx context.Context) map[string]string

PublicKeysFrom returns a map of all public keys encoded in PEM format keyed by the name of the key

func SignerWithKey

func SignerWithKey(ctx context.Context, keyName string) (signature.SignerVerifier, error)

SignerWithKey configures a SignerVerifier with the provided key by name

Types

This section is empty.

Jump to

Keyboard shortcuts

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