-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8170762: Document that ISO10126Padding pads with random bytes #9350
Conversation
👋 Welcome back driverkt! A progress list of the required criteria for merging this PR into |
/issue add 8170762 |
@driverkt This issue is referenced in the PR title - it will now be updated. |
Bug reporter says "document it in the SunJCE documentation". I am not sure what "SunJCE documentation" is, but the file updated here is an internal class and not a part of any documentation. The best suggestion I can make is adding a footnote to the padding name in Table 4-16 in https://docs.oracle.com/en/java/javase/18/security/oracle-providers.html. |
Also, the bug title does not match code change. Randomness is not removed, it's documented. |
@wangweij - thanks for clarifying! I was wondering about both of these items. Maybe you can point me in the right direction for updating the documentation link you provided? Is it available in the open? WRT the bug, should I just change the title of the bug, or what do you suggest? |
/issue add 8170762 |
@driverkt This issue is referenced in the PR title - it will now be updated. |
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.
Approved. File another docs bug to update the doc.
@driverkt 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 As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@wangweij) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Filed: https://bugs.openjdk.org/browse/JDK-8289602
|
/integrate |
/sponsor |
Just a comment, I believe both approaches are ok. The ISO 10126 spec says:
Adam's original comment was that because the spec says "arbitrary data," we could potentially just optimize the code a small bit by not having to fill with random data, and rather just leave as an uninitialized field. But using random data to get some arbitrary data it is possibly a little safer since it will perturb the output a little vs. using an all zero padding. So, fine to leave has been fixed. However, I do have further comments on the doc bug. |
Yes, @bradfordwetmore. Agreed. Both approaches are valid; hence just taking the "document the choice" approach. |
JDK-8170762 - update Javadoc to indicate ISO10126Padding pads with random bytes, though the spec does not require random bytes
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9350/head:pull/9350
$ git checkout pull/9350
Update a local copy of the PR:
$ git checkout pull/9350
$ git pull https://git.openjdk.org/jdk pull/9350/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9350
View PR using the GUI difftool:
$ git pr show -t 9350
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9350.diff