Decrypt first attempts to obtain the data key from the EncryptedKey stored in the MasterKey using OpenPGP, before falling back to GnuPG. When both attempts fail, an error is returned. Consider using DecryptContext instead.
()
| 386 | // |
| 387 | // Consider using DecryptContext instead. |
| 388 | func (key *MasterKey) Decrypt() ([]byte, error) { |
| 389 | return key.DecryptContext(context.Background()) |
| 390 | } |
| 391 | |
| 392 | // DecryptContext first attempts to obtain the data key from the EncryptedKey |
| 393 | // stored in the MasterKey using OpenPGP, before falling back to GnuPG. |
nothing calls this directly
no test coverage detected