Documentation ¶
Overview ¶
Package kmssigner implements a crypto.Signer backed by Google Cloud KMS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer interface { crypto.Signer RSAPublicKey() *rsa.PublicKey CreationTime() time.Time HashAlgo() crypto.Hash }
Signer extends crypto.Signer to provide more key metadata.
func NewWithExplicitMetadata ¶
func NewWithExplicitMetadata(api *cloudkms.Service, name string, hashAlgo crypto.Hash, creationTime time.Time) (Signer, error)
NewWithExplicitMetadata returns a crypto.Signer backed by the named Google Cloud KMS key, but doesn't need the "cloudkms.cryptoKeyVersions.get" permission which would otherwise be required for fetching the hash algorithm and creation time.
Click to show internal directories.
Click to hide internal directories.