-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8302233: HSS/LMS: keytool and jarsigner changes #14254
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
Conversation
|
👋 Welcome back weijun! A progress list of the required criteria for merging this PR into |
|
@wangweij This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
Still alive. |
|
@wangweij This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
please |
Webrevs
|
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.
Looks good - one minor comment. However, I still would like @ferakocz to review the KeyUtil.hashAlgFromHSS method.
src/java.base/share/classes/sun/security/util/SignatureFileVerifier.java
Outdated
Show resolved
Hide resolved
|
@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 117 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
| } | ||
| break; | ||
| case "HSS/LMS": | ||
| // RFC 8708 requires the same hash algorithm used as in the HSS/LMS algorithm |
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.
Actually it is RFC 8554 that requires it, RFC 8708 just references RFC 8554
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.
What I meant here is that, RFC 8708 requires that the hash algorithm used by the HSS/LMS signature (which should be a single one used in every corner of HSS/LMS, as required by RFC 8554) should be the same as the digestAlgorithm in the CMS SignerInfo object. See RFC 8708 Section 5:
digestAlgorithm MUST contain the one-way hash function used in the HSS/LMS tree.
https://www.rfc-editor.org/rfc/rfc8708.html#name-signed-data-conventions
|
/integrate |
|
Going to push as commit 0a60b0f.
Your commit was automatically rebased without conflicts. |
Code changes for HSS/LMS that's related to keytool and jarsigner:
-sigalgfor both tools when HSS/LMS key is involved, it can only beHSS/LMS.digestAlgorithmfield in a PKCS7SignerInfo. It must be the same as the hash algorithm used by the HSS/LMS key. This needs to be enforced both at signing and verification..DSAas the signature block file extension inside a signed JAR fileProgress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14254/head:pull/14254$ git checkout pull/14254Update a local copy of the PR:
$ git checkout pull/14254$ git pull https://git.openjdk.org/jdk.git pull/14254/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14254View PR using the GUI difftool:
$ git pr show -t 14254Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14254.diff
Webrev
Link to Webrev Comment