Skip to content

Commit

Permalink
Merge branch 'fixSignatureSaltUpdate' into generateV6Sigs
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed Aug 21, 2024
2 parents 8e62111 + a07114a commit 5bb9994
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,18 @@ private void checkSaltSize()
}

private void updateWithSalt()
throws PGPException
{
if (getVersion() == SignaturePacket.VERSION_6)
{
update(sigPck.getSalt());
try
{
sigOut.write(sigPck.getSalt());
}
catch (IOException e)
{
throw new PGPException("Could not update with salt.", e);
}
}
}

Expand Down

0 comments on commit 5bb9994

Please sign in to comment.