1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 18:59:39 +02:00

Wrap MalformedOpenPgpMessageException in BadData

This commit is contained in:
Paul Schaub 2022-10-24 18:32:56 +02:00
parent 8097c87b7f
commit a013ab4ebb
4 changed files with 7 additions and 4 deletions

View file

@ -656,7 +656,7 @@ public class OpenPgpMessageInputStream extends DecryptionStream {
if (decryptionKey == null) {
continue;
}
KeyRingInfo info = new KeyRingInfo(secretKeys, policy, new Date());
List<PGPPublicKey> encryptionKeys = info.getEncryptionSubkeys(EncryptionPurpose.ANY);
for (PGPPublicKey key : encryptionKeys) {