Split PGPEncryptedDataGenerator creation out into a utility method
Split the creation of PGPEncryptedDataGenerator out into a utility
method. Inline the call to the open() method on the returned generator
rather than storing the generator in a temporary variable.
Suppress deprecation warnings caused by using methods that have been
deprecated in the new version of Bouncycastle that was introduced
recently. We cannot yet replace the calls with the newer versions
because some Gerrit sites still use the older version of Bouncycastle.
Change-Id: I98f4b7c7bf8ab1ee74eb8bbc86b673d057d98e46
1 file changed