Git Product home page Git Product logo

Comments (4)

chibenwa avatar chibenwa commented on June 2, 2024

Writing a PGP extension on top of Apache James server, using bouncyCastle 1.77 we encounter the very same issue.

Downgrade to 1.70 solves the issue.

An alternative could be .setWithIntegrityPacket(false) but it looks unsafe.

from bc-java.

brett-walker avatar brett-walker commented on June 2, 2024

Have done some investigation using older versions.

I did not have to roll back so far, only to 1.71.1 for my code to work.

Version Integrity verification Signature verification
1.71 passed passed
1.71.1 passed passed
1.72 failed passed
1.73 passed failed
1.74 passed failed
1.75 passed failed
1.76 passed failed
1.77 passed failed

The release notes for version 1.72 indicate a change in the BZIP2 implementation.

The release notes for version 1.73 indicate a change in the BCPGInputStream class.

I wonder if the latter is the source of the problem I am encountering.

from bc-java.

brett-walker avatar brett-walker commented on June 2, 2024

@dghgit

Sorry to call you in. Need a bit of advice.

The change of interest in the BCPGInputStream class for v1.73; in the readPacket() method, the general change was in.read() calls change to this.read() calls. (d594ee2 08/10/2022).
I'm wondering if the same sort of change needs to happen in the readPacketTag() method too to help resolve the problem I'm encountering.
Part of the reason I'm asking is I would have to set-up a gradle environment to investigate. Using gradle which would be new too me. I use maven regularly.

Hope you can help, Thanks.

from bc-java.

dghgit avatar dghgit commented on June 2, 2024

Hmm. Possibly, change should appear on github shortly, but try what's in https://www.bouncycastle.org/betas and let me know how it goes.

from bc-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.