RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v40]
Kevin Driver
kdriver at openjdk.org
Thu Sep 19 22:09:59 UTC 2024
On Wed, 18 Sep 2024 13:32:06 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> Kevin Driver has updated the pull request incrementally with one additional commit since the last revision:
>>
>> IDE formatting broke snippet
>
> src/java.base/share/classes/javax/crypto/KDF.java line 331:
>
>> 329: * if at least one {@code Provider} supports a {@code KDF}
>> 330: * implementation for the specified algorithm but none of them
>> 331: * support the specified parameters
>
> I don't understand why this @throws has been removed. @wangweij did you request that this be removed? What about the case where there is a provider that supports the algorithm, but does not support the parameters? I thought we were going to iterate over the providers and try to instantiate each one with the supplied parameters. In that case `NoSuchAlgorithmException` is not appropriate.
@seanjmullan, @wangweij, @valeriepeng: See updates in https://github.com/openjdk/jdk/pull/20301/commits/1edc431cc85586171028daee1254a038fc315c83
This should represent the latest consensus.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20301#discussion_r1767653347
More information about the security-dev
mailing list