Documentation ¶
Overview ¶
Package crypto handles key and signer creation
Index ¶
- func AddStepsTo(sc *godog.ScenarioContext)
- func GenerateKeyPair() (*cosign.KeysBytes, error)
- func GenerateKeyPairNamed(ctx context.Context, name string) (context.Context, error)
- func PublicKeysFrom(ctx context.Context) map[string]string
- func SignerWithKey(ctx context.Context, keyName string) (signature.SignerVerifier, error)
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 ¶
GenerateKeyPair generates a key pair with no password protection
func GenerateKeyPairNamed ¶
GenerateKeyPairNamed generates a key pair and stores it in the Context
func PublicKeysFrom ¶
PublicKeysFrom returns a map of all public keys encoded in PEM format keyed by the name of the key
func SignerWithKey ¶
SignerWithKey configures a SignerVerifier with the provided key by name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.