RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v34]
Weijun Wang
weijun at openjdk.org
Mon May 13 20:51:08 UTC 2024
On Mon, 13 May 2024 19:01:09 GMT, Kevin Driver <kdriver at openjdk.org> wrote:
>> Introduce an API for Key Derivation Functions (KDFs), which are cryptographic algorithms for deriving additional keys from a secret key and other data. See [JEP 478](https://openjdk.org/jeps/478).
>
> Kevin Driver has updated the pull request incrementally with one additional commit since the last revision:
>
> code review comments
src/java.base/share/classes/com/sun/crypto/provider/HkdfKeyDerivation.java line 81:
> 79: * if the initialization parameters are inappropriate for this {@code KDFSpi}
> 80: */
> 81: protected HkdfKeyDerivation(AlgorithmParameterSpec algParameterSpec)
I suggest throwing an exception if params is not null.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18924#discussion_r1599064113
More information about the security-dev
mailing list