We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bdc9703 + e645f87 commit 8837d91Copy full SHA for 8837d91
pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedDataGenerator.java
@@ -229,7 +229,14 @@ else if (directS2K)
229
for (int i = 0; i < methods.size(); i++)
230
{
231
PGPKeyEncryptionMethodGenerator method = (PGPKeyEncryptionMethodGenerator)methods.get(i);
232
- pOut.writePacket(method.generate(dataEncryptorBuilder, sessionKey));
+ if (directS2K)
233
+ {
234
+ pOut.writePacket(method.generate(dataEncryptorBuilder, null));
235
+ }
236
+ else
237
238
+ pOut.writePacket(method.generate(dataEncryptorBuilder, sessionKey));
239
240
}
241
try
242
0 commit comments