RFR: 8331008: KDF Implementation (Preview) [v26]

Weijun Wang weijun at openjdk.org
Sun May 12 17:52:16 UTC 2024


On Sat, 11 May 2024 02:06: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:
> 
>   commenting out until better understood -- causing failures

`deriveKey` and `deriveData` throw `InvalidParameterSpecException`. Should it be `InvalidAlgorithmParameterException`?

It seems like `InvalidParameterSpecException` is only used with `AlgorithmParameters` and `AlgorithmParametersSpi`.
<img width="586" alt="Screenshot 2024-05-12 at 1 49 17 PM" src="https://github.com/openjdk/jdk/assets/574013/2ce4f76d-deac-4207-9aae-9a588f514ce6">

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18924#issuecomment-2106328158



More information about the security-dev mailing list