RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v44]
Weijun Wang
weijun at openjdk.org
Thu Sep 19 19:49:00 UTC 2024
On Thu, 19 Sep 2024 19:16:22 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).
>>
>> Work was begun in [another PR](https://github.com/openjdk/jdk/pull/18924).
>
> Kevin Driver has updated the pull request incrementally with one additional commit since the last revision:
>
> DPS refactor to re-enable some declared exceptions in getInstance signatures
src/java.base/share/classes/javax/crypto/KDF.java line 665:
> 663:
> 664: private static boolean checkSpiNonNull(Delegate d) {
> 665: return (d != null && d.spi() != null);
Can `d.spi() == null` ever happen?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20301#discussion_r1767511360
More information about the security-dev
mailing list