crypto

package
v0.0.0-...-706d53e Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyManager

func NewKeyManager(log logger.Logger, client _http.Client) *rsaKeyManager

Types

type KeyManager

type KeyManager interface {
	GenerateKey() (*rsa.PrivateKey, error)
	FormatPubKey(crypto.PublicKey) string
	FetchKey(ctx context.Context, id string) (crypto.PublicKey, error)
}

Jump to

Keyboard shortcuts

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