RH2052070 - Enable AlgorithmParameters and AlgorithmParameterGenerator services in FIPS mode#5
Open
martinuy wants to merge 2 commits intorh-openjdk:fipsfrom
Open
RH2052070 - Enable AlgorithmParameters and AlgorithmParameterGenerator services in FIPS mode#5martinuy wants to merge 2 commits intorh-openjdk:fipsfrom
martinuy wants to merge 2 commits intorh-openjdk:fipsfrom
Conversation
franferrax
reviewed
Oct 4, 2022
There was a problem hiding this comment.
Backport-wise, this looks good to me:
- I didn't review a6e533a, since it is #1
- Regarding 6afe961:
- It enables the same providers in
java.securityas rh-openjdk/jdk@6e74f28 - Lock-down: it leaves the same algorithms and services enabled in
SunJCE.java/SunEntries.java/SunRsaSignEntries.javaas rh-openjdk/jdk@6e74f28 + rh-openjdk/jdk@84266ee - I agree with the
dsaAliasesmove inSunEntries.java
- It enables the same providers in
However, I think I found a little problem in the original rh-openjdk/jdk@6e74f28 patch, see the comments inline with the code.
RH2094027 - SunEC runtime permission for FIPS
…r services in FIPS mode RH2092507 - P11Key.getEncoded does not work for DH keys in FIPS mode
franferrax
approved these changes
Nov 4, 2022
franferrax
left a comment
There was a problem hiding this comment.
Given that:
- The original rh-openjdk/jdk@6e74f28 patch issues have been split out to #8
- After the force-push, the code is exactly the same, as shown in the
d93549a..6afe961comparison
This looks ready to me.
This was referenced Nov 5, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Search this PR in Red Hat Jira
rh-openjdk:fips← #1 ← THIS PRA 11u backport of RH2052070 (Enable AlgorithmParameters and AlgorithmParameterGenerator services in FIPS mode) is required for a 11u backport of RH2048582 (Support PKCS#12 keystores in FIPS mode).
Conflicts when applying the 17u RH2052070 to 11u:
src/java.base/share/classes/com/sun/crypto/provider/SunJCE.javajdk.internal.misc.SharedSecretsin 11u.src/java.base/share/classes/sun/security/provider/SunEntries.javadsaAliasesto be available for FIPS and non-FIPS scopessrc/java.base/share/classes/sun/security/rsa/SunRsaSignEntries.javajdk.internal.misc.SharedSecrets, and notjdk.internal.access.SharedSecrets.src/java.base/share/conf/security/java.securityThe proposed patch also includes the 11u backport of RH2092507 (P11Key.getEncoded does not work for DH keys in FIPS mode), a minor follow-up fix of RH2052070.
Conflicts when applying the 17u RH2092507 patch to 11u:
src/java.base/share/classes/com/sun/crypto/provider/SunJCE.javaNotice for Reviewers: this PR depends on #1 (RH1995150), which is under review now. I've committed the proposed RH1995150 changes for 11u and will rebase if necessary.