Skip to content

8301793: AlgorithmId should not encode a missing parameters field as NULL unless hardcoded #3615

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

varada1110
Copy link

@varada1110 varada1110 commented Jun 2, 2025

In jdk17, ML-KEM and ML-DSA keys there are no algorithm parameters but adds a NULL to the encoding when it shouldn’t. With this backport the algorithms that don't need parameters, the NULL is omitted as expected.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8301793 needs maintainer approval

Issue

  • JDK-8301793: AlgorithmId should not encode a missing parameters field as NULL unless hardcoded (Enhancement - P4 - Requested)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3615/head:pull/3615
$ git checkout pull/3615

Update a local copy of the PR:
$ git checkout pull/3615
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3615/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3615

View PR using the GUI difftool:
$ git pr show -t 3615

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3615.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 2, 2025

👋 Welcome back varadam! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jun 2, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport a97271e3b5d5a08fc503a11cd3e253974fb77ce6 8301793: AlgorithmId should not encode a missing parameters field as NULL unless hardcoded Jun 2, 2025
@openjdk
Copy link

openjdk bot commented Jun 2, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Jun 2, 2025
@mlbridge
Copy link

mlbridge bot commented Jun 2, 2025

Webrevs

@varada1110
Copy link
Author

/approval 8301793 request the backport fix where the AlgorithmId should omit the parameters field when it is not required, rather than encoding it as NULL, unless the algorithm explicitly mandates. JTREG testing successful for sun/security

@openjdk
Copy link

openjdk bot commented Jun 2, 2025

@varada1110
8301793: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jun 2, 2025
@GoeLin
Copy link
Member

GoeLin commented Jun 5, 2025

Hi Varada,
please first get a review, then label for approval.
Please edit the description of the PR and tell why this is not clean.
I'm not sure this is a good backport. Please tell in the approval comment in JBS why you
want to backport this and give a risk assessment.

@openjdk openjdk bot removed the approval label Jun 5, 2025
@varada1110
Copy link
Author

Hi @seanjmullan ,
Could you please review this PR?

@seanjmullan
Copy link
Member

Hi @seanjmullan , Could you please review this PR?

@varada1110 I'm not actively participating in this project. You will need to find another Reviewer.

@phohensee
Copy link
Member

You might ask @weijun, who fixed the original issue.

@varada1110
Copy link
Author

varada1110 commented Jun 11, 2025

Hi @wangweij,
Could you please review this PR?

Copy link
Contributor

@wangweij wangweij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good to me. Sorry for the late review.

@openjdk
Copy link

openjdk bot commented Jun 18, 2025

⚠️ @varada1110 This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@varada1110
Copy link
Author

Thank you @wangweij for the review
/approval 8301793 request the backport fix where the AlgorithmId should omit the parameters field when it is not required, rather than encoding it as NULL, unless the algorithm explicitly mandates. JTREG testing successful for sun/security

@openjdk
Copy link

openjdk bot commented Jun 19, 2025

@varada1110
8301793: The approval request was already up to date.

@openjdk openjdk bot added the approval label Jun 19, 2025
@GoeLin
Copy link
Member

GoeLin commented Jun 26, 2025

Hi @varada1110
please state in the PR comment why this is not clean.
please give a reason why you want this in 17 (besides telling this fixes the error it is supposed to fix...).
GHA and the related tests are a minimum. Did you do any other testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval backport rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

5 participants