bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/64881] New: KeyPairGenerator.genKeyPair() ends up calling


From: gnu_andrew at member dot fsf.org
Subject: [Bug classpath/64881] New: KeyPairGenerator.genKeyPair() ends up calling the default generateKeyPair method which returns a DSA generator
Date: Fri, 30 Jan 2015 22:38:14 +0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64881

            Bug ID: 64881
           Summary: KeyPairGenerator.genKeyPair() ends up calling the
                    default generateKeyPair method which returns a DSA
                    generator
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gnu_andrew at member dot fsf.org

KeyPairGenerator gen = KeyPairGenerator.getInstance("RSA");
    gen.initialize(2048);
    KeyPair pair = gen.genKeyPair();

The genKeyPair method ends up calling
java.security.KeyPairGenerator.generateKeyPair, not the generateKeyPair method
in the returned KeyPairGenerator instance. It ignores any values of provider or
algorithm and attempts to generate a DSA key pair using the GNU provider.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]