RFR: 5066842: PKCS8EncodedKeySpec needs getAlgorithm method

Weijun Wang weijun at openjdk.org
Thu Sep 1 23:37:31 UTC 2022


On Thu, 1 Sep 2022 23:25:16 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> Since the algorithm is already encoded inside a PKCS #8 data block, it is not necessary to provide an algorithm when a `PKCS8EncodedKeySpec` object is created. The same for `X509EncodedKeySpec`.

The first commit only contains API change. Implementation will be provided in later commit(s).

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

PR: https://git.openjdk.org/jdk/pull/10131



More information about the security-dev mailing list