Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8358076

KeyFactory.getInstance("EdDSA").generatePublic(null) throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 25
    • security-libs

      At the end of generatePublicImpl(KeySpec keySpec) in src/java.base/share/classes/sun/security/ec/ed/EdDSAKeyFactory.java:

              } else {
                  throw new InvalidKeySpecException(keySpec.getClass().getName() +
                      " not supported.");
              }

      NPE happens before an InvalidKeySpecException can be thrown.

      There could be other similar changes in JDK-8298420.

            ascarpino Anthony Scarpino
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: