softkms

package
v0.0.0-...-1a11905 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRSAKeySize = 3072

DefaultRSAKeySize is the default size for RSA keys.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoftKMS

type SoftKMS struct{}

SoftKMS is a key manager that uses keys stored in disk.

func New

func New(ctx context.Context, opts apiv1.Options) (*SoftKMS, error)

New returns a new SoftKMS.

func (*SoftKMS) Close

func (k *SoftKMS) Close() error

Close is a noop that just returns nil.

func (*SoftKMS) CreateKey

func (k *SoftKMS) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error)

func (*SoftKMS) CreateSigner

func (k *SoftKMS) CreateSigner(req *apiv1.CreateSignerRequest) (crypto.Signer, error)

CreateSigner returns a new signer configured with the given signing key.

func (*SoftKMS) GetPublicKey

func (k *SoftKMS) GetPublicKey(req *apiv1.GetPublicKeyRequest) (crypto.PublicKey, error)

Jump to

Keyboard shortcuts

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