Coder Social home page Coder Social logo

Comments (6)

emlun avatar emlun commented on July 30, 2024

Hi!

Looks like KeyFactory doesn't have access to a BouncyCastleProvider security provider. This should be set up by the static initializer in BouncyCastleCrypto, but I suspect that's a bit fragile.

Is this an existing system or a new one in development?

from java-u2flib-server.

emlun avatar emlun commented on July 30, 2024

I pushed an attempt to fix this on branch issue-39-ecdsa-keyfactory-not-available, you're welcome to test if that works for you.

from java-u2flib-server.

amitnaik avatar amitnaik commented on July 30, 2024

Thank you for this fix! Could you please tell me the version for u2flib-server-core version.
Currently we are using 0.18.1

from java-u2flib-server.

emlun avatar emlun commented on July 30, 2024

I haven't released the prototype as a versioned release yet. Are you able to try to build branch issue-39-ecdsa-keyfactory-not-available and test if the fix works?

from java-u2flib-server.

amitnaik avatar amitnaik commented on July 30, 2024

I have tested this with main method

public static void main(String[] args) throws Exception {
Provider provider = new BouncyCastleProvider();
Signature ecdsaSignature = Signature.getInstance("SHA256withECDSA", provider);

    X9ECParameters curve = SECNamedCurves.getByName("secp256r1");
    ECPoint point = null;

    KeyFactory.getInstance("ECDSA", provider).generatePublic(
            new ECPublicKeySpec(point,
                    new ECParameterSpec(
                            curve.getCurve(),
                            curve.getG(),
                            curve.getN(),
                            curve.getH())));
}

It is now working fine and its not throwing any exceptions

Requesting you to release this one!

from java-u2flib-server.

emlun avatar emlun commented on July 30, 2024

Great, thanks! I just pushed version 0.19.3-RC1 into the relase pipeline, it should show up on Maven Central soon. If nothing else comes up in a week I'll promote it to a proper 0.19.3 release.

from java-u2flib-server.

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.