Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenerateKeyPairResult ¶
GenerateKeyPairResult is a struct to ensure the private and public parts can not be confused by the caller.
func GenerateKeyPair ¶
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.
Click to show internal directories.
Click to hide internal directories.