RFR: 8325448: Hybrid Public Key Encryption [v26]

Artur Barashev abarashev at openjdk.org
Thu Aug 14 14:04:29 UTC 2025


On Wed, 13 Aug 2025 22:39:01 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> test/jdk/com/sun/crypto/provider/Cipher/HPKE/Functions.java line 71:
>> 
>>> 69:             var kp2 = genKeyPair(param.name());
>>> 70:             var params = HPKEParameterSpec
>>> 71:                     .of(param.kem, KDF_HKDF_SHA256, AEAD_AES_256_GCM);
>> 
>> What's the reason that we cycle though KEM IDs but always use the same KDF and AEAD IDs?
>
> I was thinking that testing on different key types are more important, but yes I can add others too. Test updated.

Thanks! It makes sense to cover all possible combinations since that encrypt/decrypt operation is very fast.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18411#discussion_r2276729992


More information about the security-dev mailing list