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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 25
    • Affects Version/s: 25
    • Component/s: 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.

            Assignee:
            Anthony Scarpino
            Reporter:
            Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: