kms

package module
v0.0.0-...-7047274 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 15 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 struct {
	crypto.Signer // https://golang.ir/pkg/crypto/#Signer

	PublicKeyFile string

	ProjectId  string
	LocationId string
	KeyRing    string
	Key        string
	KeyVersion string

	ECCRawOutput       bool // for ECC keys, output raw signatures. If false, signature is ans1 formatted
	SignatureAlgorithm x509.SignatureAlgorithm
	// contains filtered or unexported fields
}

func NewKMSCrypto

func NewKMSCrypto(conf *KMS) (KMS, error)

func (KMS) Public

func (t KMS) Public() crypto.PublicKey

func (KMS) Sign

func (t KMS) Sign(_ io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)

func (KMS) TLSCertificate

func (t KMS) TLSCertificate() (tls.Certificate, error)

Jump to

Keyboard shortcuts

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