kms

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KMS

type KMS interface {
	// CreateKey is responsible for creating an asymmetric key pair
	// with the ECDSA algorithm on the P-256 Curve with a SHA-256 digest
	CreateKey(context.Context) (*ecdsa.PublicKey, error)

	// Sign is responsible for signing an image via the keys
	// stored in KMS
	Sign(ctx context.Context, payload []byte) (signature []byte, err error)

	// PublicKey returns the public key stored in the KMS
	PublicKey(ctx context.Context) (*ecdsa.PublicKey, error)
}

func Get

func Get(ctx context.Context, keyResourceID string) (KMS, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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