kms

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlgoSHA256 = "SHA256"
	AlgoSHA384 = "SHA384"
	AlgoSHA512 = "SHA512"
	APIPath    = "//cloudkms.googleapis.com/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Path string
	Algo string
}

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

Signer is an AttestationSigner that uses Google's Cloud KMS to sign attestations Only supports SHA512 digests.

func NewSigner

func NewSigner(keys map[string]Key, opts ...SignerOpt) (*Signer, error)

func (*Signer) Close

func (s *Signer) Close() error

Close closes the KMS signer's connections.

func (*Signer) Sign

func (s *Signer) Sign(checkName, body string) (string, string, error)

type SignerOpt

type SignerOpt func(*Signer)

func WithKMSClient

func WithKMSClient(client kmsClient) SignerOpt

Jump to

Keyboard shortcuts

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