bcgit / bc-java

Bouncy Castle Java Distribution (Mirror)
https://www.bouncycastle.org/java.html
MIT License
2.33k stars 1.14k forks source link

Use the proper method to update a signature with salt #1782

Closed vanitasvitae closed 2 months ago

vanitasvitae commented 3 months ago

Fixes #1780

Using update(salt) instead of sigOut.write(salt) caused some preprocessing on the salt value in some cases (Cleartext Signature Framework line endings), which resulted in broken signature verification.