Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptRequest ¶
DecryptRequest for decrypting remote kms requests.
type DecryptResponse ¶
type DecryptResponse struct {
Plaintext string
}
DecryptResponse for receiving decryption response from remote kms requests.
type EncryptRequest ¶
EncryptRequest for encrypting remote kms requests.
type EncryptResponse ¶
type EncryptResponse struct {
Ciphertext string
}
EncryptResponse for receiving encryption response from remote kms requests.
type Service ¶
type Service interface { // Encrypt req for master key in keyURI Encrypt(keyURI string, req *EncryptRequest) (*EncryptResponse, error) // Decrypt req for master key in keyURI Decrypt(keyURI string, req *DecryptRequest) (*DecryptResponse, error) }
Service provides crypto service used internally by the KMS it is responsible for wrapping/unwrapping keys stored by the KMS using a master key.
Click to show internal directories.
Click to hide internal directories.