Encrypt takes a SOPS data key, encrypts it with KMS and stores the result in the EncryptedKey field. Consider using EncryptContext instead.
(dataKey []byte)
| 260 | // |
| 261 | // Consider using EncryptContext instead. |
| 262 | func (key *MasterKey) Encrypt(dataKey []byte) error { |
| 263 | return key.EncryptContext(context.Background(), dataKey) |
| 264 | } |
| 265 | |
| 266 | // EncryptContext takes a SOPS data key, encrypts it with KMS and stores the result |
| 267 | // in the EncryptedKey field. |
no test coverage detected