Code Monkey home page Code Monkey logo

Comments (6)

fabiogermann avatar fabiogermann commented on September 18, 2024

maybe this pull request will help: https://github.com/bcgit/bc-csharp/pull/54/files

from bc-csharp.

 avatar commented on September 18, 2024

Just one thing with this one - which Java provider is being talked about here? The BC one, in line with the recommended practice with OAEP, defaults to the same mask generation digest as the base one.

Fabio's patch will obviously help with this, but I am wondering about the usage at the Java end - if possible OAEP should be configured to use the same digest in both roles.

from bc-csharp.

wizche avatar wizche commented on September 18, 2024

I'm talking about the SUN provider, which, when using the default cipher initialisation, doesn't use the same digest algorithm for both OAEP and MGF. You are completely right that changing the configuration on the java side (setting both digest the same) is the best solution. But as you know, sometimes legacy application need much time to perform such a change...

I tested the pull request of Fabio and worked as intended. Maybe you could add a warning when using incongruent digests that suggest the users to be compliant with recommendation at some point.

from bc-csharp.

wizche avatar wizche commented on September 18, 2024

BTW: There is an open issue in OpenJDK targeting this very problem: https://bugs.openjdk.java.net/browse/JDK-7038158

from bc-csharp.

fabiogermann avatar fabiogermann commented on September 18, 2024

Is there anything missing in this issue and related pull request? I know it's an old one but still would be great to have this merged.

from bc-csharp.

dghgit avatar dghgit commented on September 18, 2024

So I've just checked and the sun provider is still doing this. I'd say this issue will never be fixed, the other weird thing the cipher implementation is using BER for the parameters encoding... Anyway, I've merged the patch.

from bc-csharp.

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.