Encrypt encrypts the data key with the PGP key with the same fingerprint as the MasterKey. Consider using EncryptContext instead.
(dataKey []byte)
| 267 | // |
| 268 | // Consider using EncryptContext instead. |
| 269 | func (key *MasterKey) Encrypt(dataKey []byte) error { |
| 270 | return key.EncryptContext(context.Background(), dataKey) |
| 271 | } |
| 272 | |
| 273 | // EncryptContext encrypts the data key with the PGP key with the same |
| 274 | // fingerprint as the MasterKey. |
no test coverage detected