Documentation ¶
Overview ¶
Package decrypt loads encrypted keys from Google KMS.
Index ¶
- type Config
- func (c *Config) Load(ctx context.Context, client Decrypter, ciphertext string) ([]byte, error)
- func (c *Config) LoadSigner(ctx context.Context, client Decrypter, ciphertext string) (*token.Signer, error)
- func (c *Config) LoadVerifier(ctx context.Context, client Decrypter, ciphertext ...string) (*token.Verifier, error)
- type Decrypter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains settings for KMS decryption.
func (*Config) Load ¶
Load decrypts the ciphertext using the given KMS keypath and returns the decrypted plain text as bytes.
type Decrypter ¶
type Decrypter interface {
Decrypt(ctx context.Context, req *kmspb.DecryptRequest, opts ...gax.CallOption) (*kmspb.DecryptResponse, error)
}
Decrypter wraps the Decrypt operation provided by the kms.KeyManagementClient.
Click to show internal directories.
Click to hide internal directories.