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 a7930a2 + 345c720 commit 0503e2aCopy full SHA for 0503e2a
pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java
@@ -349,10 +349,18 @@ private void checkSaltSize()
349
}
350
351
private void updateWithSalt()
352
+ throws PGPException
353
{
354
if (getVersion() == SignaturePacket.VERSION_6)
355
- update(sigPck.getSalt());
356
+ try
357
+ {
358
+ sigOut.write(sigPck.getSalt());
359
+ }
360
+ catch (IOException e)
361
362
+ throw new PGPException("Could not update with salt.", e);
363
364
365
366
0 commit comments