JDK-8226900 : No AlgorithmParameters implementation for XDH/XEC
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 11,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2019-06-27
  • Updated: 2022-06-22
  • Resolved: 2022-06-22
Related Reports
Blocks :  
Description
No XDH or XEC AlgorithmParameters impl in JDK.

It order to get AlgorithmParameters from AlgorithmParameterSpec, applications could code as the general tyle for "EC" or other algorithms:
AlgorithmParameters algParams =
    AlgorithmParameters.getInstance("x25519");
algParams.init(x25519AlgorithmParamSpec);

If no implementation of XDH AlgorithmParameters, it is tricky to get AlgorithmParameters object for x25519/x448.  Some public APIs requires to use AlgorithmParameters object,  for example AlgorithmConstraints.permits().
Comments
Removing the "starter-bug" label, since this is a little more nuanced/complex than initially thought. The current implementation has some issues that make this not as clean/simple as originally thought. We'll mark as "won't fix" for now and possibly open another RFE with a larger scope after some additional investigation.
22-06-2022

Investigation to be performed, since this may involve a larger refactoring of the current implementation.
22-06-2022