Documentation
¶
Overview ¶
Package fakekms provides a fake implementation of registry.KMSClient.
Normally, a 'keyURI' identifies a key that is stored remotely by the KMS, and every operation is executed remotely using a RPC call to the KMS, since the key should not be sent to the client. In this fake implementation we want to avoid these RPC calls. We achieve this by encoding the key in the 'keyURI'. So the client simply needs to decode the key and generate an AEAD out of it. This is of course insecure and should only be used in testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAEADWithContext ¶ added in v2.3.0
func NewAEADWithContext(keyURI string) (tink.AEADWithContext, error)
NewAEADWithContext returns a new tink.AeadWithContext for the given keyURI.
The returned AEADWithContext will fail if the context is canceled.
Types ¶
This section is empty.