RECOVERING FROM A BAD PASSPHRASE: PGPPBEEncryptedData.getDataStream(...)
William Swartzendruber <[email protected]> Tue, 11 Dec 2018 23:01:00 -0700
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <CAHtLsAUaY6nXxROyCV=ywVpbXE2YSwwinWNP9ONFxuJf85JmZQ@mail.gmail.com> |
Hello:
I am encountering an issue where attempting to unlock an encrypted data
stream via PGPPBEEncryptedData.getDataStream(...) will leave the instance
in a bad state if the passphrase is incorrect. Attempting to get the data
stream again results in:
PGPDataValidationException("data check failed")
Is there a way to recover from someone entering the incorrect passphrase?
This is bcpg-jdk15on-1.60
I appreciate any assistance or clarification in this manner.