RFR: 8325448: Hybrid Public Key Encryption [v41]

Vladimir Kozlov kvn at openjdk.org
Thu Nov 20 23:42:49 UTC 2025


On Tue, 2 Sep 2025 17:03:35 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   cannot reset with withMethods
>
> New commit pushed. The `with` methods can no longer be used to "reset" a field to its default value, for example, calling `withInfo(new byte[0])` to remove the non-default info or `withAuthKey(null)` to revert to `mode_base`.
> 
> Reasons:
> 1. Allowing a default value might hide unintended empty user input.
> 2. It's hard to manage all the fields in an `HPKEParameterSpec` object and reuse it back and forth.

@wangweij  The test `com/sun/crypto/provider/Cipher/HPKE/KAT9180.java` is failing in [GHA testing](https://productionresultssa0.blob.core.windows.net/actions-results/32e65b6c-b1ac-48ff-a803-144e2ad596be/workflow-job-run-06ad5898-c5e3-548c-848e-37a2014b4ffd/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-11-20T23%3A41%3A13Z&sig=qlrh66IgmPSB1Z6ZmXgzp6BUJxGuJQN9Irn%2BJ6O%2B5AI%3D&ske=2025-11-21T09%3A10%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-11-20T21%3A10%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-11-20T23%3A31%3A08Z&sv=2025-11-05). I don't see you switched on GHA for this PR.

2025-11-20T17:09:45.5295330Z STDERR:
2025-11-20T17:09:45.5295892Z java.io.IOException: Cannot find the artifact rfc9180-test-vectors
2025-11-20T17:09:45.5296776Z 	at jdk.test.lib.artifacts.ArtifactResolver.fetchOne(ArtifactResolver.java:100)
2025-11-20T17:09:45.5298008Z 	at KAT9180.main(KAT9180.java:70)
2025-11-20T17:09:45.5298884Z 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
2025-11-20T17:09:45.5299927Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
2025-11-20T17:09:45.5300843Z 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
2025-11-20T17:09:45.5301722Z 	at java.base/java.lang.Thread.run(Thread.java:1516)
2025-11-20T17:09:45.5303159Z Caused by: jdk.test.lib.artifacts.ArtifactResolverException: Couldn't automatically resolve dependency for rfc9180-test-vectors
2025-11-20T17:09:45.5304417Z Please specify the location using jdk.test.lib.artifacts.rfc9180-test-vectors
2025-11-20T17:09:45.5305650Z 	at jdk.test.lib.artifacts.DefaultArtifactManager.resolve(DefaultArtifactManager.java:39)
2025-11-20T17:09:45.5306788Z 	at jdk.test.lib.artifacts.DefaultArtifactManager.resolve(DefaultArtifactManager.java:32)
2025-11-20T17:09:45.5307844Z 	at jdk.test.lib.artifacts.ArtifactResolver.resolve(ArtifactResolver.java:61)
2025-11-20T17:09:45.5308800Z 	at jdk.test.lib.artifacts.ArtifactResolver.fetchOne(ArtifactResolver.java:96)
2025-11-20T17:09:45.5309491Z 	... 5 more

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

PR Comment: https://git.openjdk.org/jdk/pull/18411#issuecomment-3560656178


More information about the security-dev mailing list