RFR: 8297878: KEM: Implementation [v3]

Weijun Wang weijun at openjdk.org
Tue Apr 18 16:24:58 UTC 2023


On Fri, 14 Apr 2023 16:54:49 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> The KEM API and DHKEM impl. Note that this PR uses new methods in https://github.com/openjdk/jdk/pull/13250.
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   spec changes

New commit pushed. The "the caller has validated" sentences are removed since that will be an implementation detail. Now each provider needs to validate the arguments themselves.

Also, when a null key is provided to `newEncapsulator` and `newDecapsulator`, they throw an `InvalidKeyException` instead of a `NullPointerException` now.

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

PR Comment: https://git.openjdk.org/jdk/pull/13256#issuecomment-1513451629



More information about the security-dev mailing list