RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v15]
Weijun Wang
weijun at openjdk.org
Thu Aug 29 18:02:30 UTC 2024
On Thu, 29 Aug 2024 17:54:38 GMT, Kevin Driver <kdriver at openjdk.org> wrote:
>> This is `KDF` not `KDFSpi`, the implementation is in this file. I just meant this exception should be thrown when the condition described here is met.
>
> What do you propose? It's not clear how we would distinguish between NSAE and IAPE and continue checking providers. Should I remove the exception from the method signature?
This is not an API comment. This is implementation only.
I just propose that if there exist one or more implementations for this algorithm but none of them accepts the parameters then you should throw an IAPE. This is what the spec is saying.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20301#discussion_r1736841918
More information about the security-dev
mailing list