Open singpolyma opened 5 days ago
https://github.com/bcgit/bc-java/blob/main/pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPBEKeyEncryptionMethodGenerator.java#L119 expects sessionInfo to be non-null, but https://github.com/bcgit/bc-java/blob/main/pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedDataGenerator.java#L229 sets it to null when there is only a single symmetric encryption key.
https://github.com/bcgit/bc-java/blob/main/pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPBEKeyEncryptionMethodGenerator.java#L119 expects sessionInfo to be non-null, but https://github.com/bcgit/bc-java/blob/main/pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedDataGenerator.java#L229 sets it to null when there is only a single symmetric encryption key.