MCPcopy
hub / github.com/caddyserver/certmagic / StandardKeyGenerator

Struct StandardKeyGenerator

crypto.go:333–336  ·  view source on GitHub ↗

StandardKeyGenerator is the standard, in-memory key source that uses crypto/rand.

Source from the content-addressed store, hash-verified

331// StandardKeyGenerator is the standard, in-memory key source
332// that uses crypto/rand.
333type StandardKeyGenerator struct {
334 // The type of keys to generate.
335 KeyType KeyType
336}
337
338// GenerateKey generates a new private key according to kg.KeyType.
339func (kg StandardKeyGenerator) GenerateKey() (crypto.PrivateKey, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected