Encrypt takes a SOPS data key, encrypts it with HuaweiCloud KMS and stores the result in the EncryptedKey field. Consider using EncryptContext instead.
(dataKey []byte)
| 134 | // |
| 135 | // Consider using EncryptContext instead. |
| 136 | func (key *MasterKey) Encrypt(dataKey []byte) error { |
| 137 | return key.EncryptContext(context.Background(), dataKey) |
| 138 | } |
| 139 | |
| 140 | // EncryptContext takes a SOPS data key, encrypts it with HuaweiCloud KMS and stores the result |
| 141 | // in the EncryptedKey field. |
no test coverage detected