RFR: 8297878: KEM: Implementation [v12]
Weijun Wang
weijun at openjdk.org
Fri Apr 28 22:01:54 UTC 2023
On Thu, 27 Apr 2023 15:40:53 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:
>
> more @since and about nulls
Maybe 1.6 is already modern enough. ;-)
`to` is useful if `secretSize` is 48 but you want an AES-256 key, then you would call `encapsulate(0, 32, "AES")` or `encapsulate(16, 48, "AES")`, depending on how your protocol demands.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13256#issuecomment-1528128560
More information about the security-dev
mailing list