Versions in this module Expand all Collapse all v1 v1.0.2 May 13, 2022 Changes in this version + type Config struct + Certificate tls.Certificate + DefaultKeyID string + Endpoints []string + RootCAs *x509.CertPool + type Context map[string]string + func (c Context) MarshalText() ([]byte, error) + type DEK struct + Ciphertext []byte + KeyID string + Plaintext []byte + func (d *DEK) UnmarshalText(text []byte) error + func (d DEK) MarshalText() ([]byte, error) + type KMS interface + CreateKey func(keyID string) error + DecryptKey func(keyID string, ciphertext []byte, context Context) ([]byte, error) + GenerateKey func(keyID string, context Context) (DEK, error) + Stat func() (Status, error) + func New(keyID string, key []byte) (KMS, error) + func NewWithConfig(config Config) (KMS, error) + func Parse(s string) (KMS, error) + type Status struct + DefaultKey string + Endpoints []string + Name string