On Wed, 3 Feb 2021 19:50:02 GMT, Weijun Wang <wei...@openjdk.org> wrote:

>> That is right, PSSKeyCompatibility already explicitly proves they both are 
>> equal and there are other tests that generates both manually and using 
>> KeyFactory. In addition, this test focuses on signature verification rather 
>> than key creation.
>
> Not only does a key have encoded form and an algorithm, it might contain 
> other internal info that could affect its usage (here, it's signing and 
> verifying). That's why there are multiple keys there.
> 
> A Spec type is different, it only has public data and is easy to prove 
> equality.

Sure, the equality verification was added now

-------------

PR: https://git.openjdk.java.net/jdk/pull/2381

Reply via email to