RFR: 8325448: Hybrid Public Key Encryption [v23]

Artur Barashev abarashev at openjdk.org
Tue Aug 12 18:51:20 UTC 2025


On Fri, 27 Jun 2025 22:04:25 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Implement HPKE as defined in https://datatracker.ietf.org/doc/rfc9180/.
>> 
>> ![HPKEParameterSpec06-27-3](https://github.com/user-attachments/assets/a17e7ea2-86dd-4e2d-9506-210e97ff8ae8)
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   finetune the spec

test/jdk/com/sun/crypto/provider/Cipher/HPKE/KAT9180.java line 54:

> 52: /// provided via a local path with
> 53: /// ```
> 54: /// jtreg -Djdk.test.lib.artifacts.rfc9180-test-vectors=<local-json-file> KAT9180.java

I followed this instruction and ran the test with the local JSON file. Got a compilation error:

symbol:   class HPKEParameterSpec
  location: package javax.crypto.spec
/Users/abarashe/src/jdk-closed-review/open/test/jdk/com/sun/crypto/provider/Cipher/HPKE/KAT9180.java:86: error: cannot find symbol
            var spec = HPKEParameterSpec.of(kem_id, kdf_id, aead_id).info(info);
                       ^
  symbol:   variable HPKEParameterSpec
  location: class KAT9180
2 errors
result: Failed. Compilation failed: Compilation failed

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

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


More information about the security-dev mailing list