getParams() for XECKey returns nonsense

Anthony Scarpino anthony.scarpino at oracle.com
Tue Sep 8 17:29:35 UTC 2020


On 8/30/20 9:51 AM, Anders Rundgren wrote:
> Hi,
> This applies to JDK 11.
> 
> https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/security/interfaces/XECKey.html 
> 
> what is the value of "AlgorithmParameterSpec"?
> 
> In JDK 15 the new EdECKey has gotten a more logical solution:
> https://download.java.net/java/early_access/jdk15/docs/api/java.base/java/security/interfaces/EdECKey.html 
> 
> 
> thanx,
> Anders
> 
> 
> 

The return type for XECKey.getParams() was trying to be more generic, 
probably too generic.  NamedParameterSpec implements 
AlgorithParameterSpec.  The implementationf or XECKey returns a 
NamedParameterSpec.

Tony



More information about the security-dev mailing list