-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8297878: KEM: Implementation #1
Conversation
👋 Welcome back weijun! A progress list of the required criteria for merging this PR into |
@wangweij This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
/issue add JDK-8322971 |
@wangweij |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Spec changes appear to be identical to those in JDK 21, with the exception of the expected @since 17
and @apiNote
which are used to identify these as additions via MR.
Associated CSR (JDK-8330545) also Reviewed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be easier to review if JDK-8322971 and JDK-8305846: "Support compilation in Proc test utility" were backported separately. Also, 8322971 seems to be missing from 21u as well.
The changes look correct as far as I can tell. I'm not sure why different copyright years are being used from the original patch, particularly for Provider.java
where this is the only difference from 8297878.
The other differences (21->17, removal of the implementation, SSL & ECC changes) make sense. I presume the test differences with getKemImpl
are due to the implementation removal making KEM.getInstance
unusable?
So Skara correctly recognises this as a backport, the title should be "Backport 6b90b0519e89429300838fa598b2ea9ffda984a2"
Hi @wangweij, you might want to enable the GHA tests? |
@gnu-andrew I backported the 3 issues in a single PR because JDK-8305846 was originally created to support the RSA-KEM interop test. I understand the change for it looks a little strange without any usage of it here. I hope grouping them together will make further backport - if exists - simpler. For the year of Yes, |
@GoeLin Maybe you can ask the maintainer of this repo to decide whether GHA tests can be enabled. Some security-related tests would fail because hardcoded certificates have expired. |
/integrate |
We usually try and avoid it for more complex patches. It makes it easier for the person backporting, but harder for reviewers who have to pick it apart again.
Ok, we usually avoid this as it creates differences from the original commit which may then break further backports.
Ah, ok, so it's necessary after 8322971. |
This is the KEM API backport to Java SE 17 MR 1.
The
src
files are identical to those in the currentjdk
repo except for the change made toKEM.java
at openjdk/jdk@59c2aff#diff-7bee547996d0de5692181a509bdf509276c7eb9351722580fd6aee7975745e67.Update: There are javadoc changes to all the
src
files in following commits.The
RSA_KEM
code is modified becauseDerOutputStream
lacks several methods in JDK 17.Proc
is updated like in JDK 21 to support for some internal interop testing. The test files forProc
are also backported.This change does not contain the DHKEM implementation in the original JDK 21 change.
This change also covers JDK-8322971 which fixed a follow-on P3 bug of the initial KEM work.
Progress
Issues
Backport <hash>
with the hash of the original commit. See Backports.Backport <hash>
with the hash of the original commit. See Backports.Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-ri.git pull/1/head:pull/1
$ git checkout pull/1
Update a local copy of the PR:
$ git checkout pull/1
$ git pull https://git.openjdk.org/jdk17u-ri.git pull/1/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1
View PR using the GUI difftool:
$ git pr show -t 1
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-ri/pull/1.diff
Webrev
Link to Webrev Comment