Support SecureRandom strong algorithms in FIPS mode - #1056
Support SecureRandom strong algorithms in FIPS mode#1056Mohit-Rajbhar100698 wants to merge 1 commit into
Conversation
1c1995a to
6c672c6
Compare
|
Hi @keithc-ca |
| private static Stream<Arguments> patternMatches_strongAlgorithms() { | ||
| Stream.Builder<Arguments> tests = Stream.builder(); | ||
|
|
||
| if (isProviderPresent("OpenJCEPlusFIPS")) { |
There was a problem hiding this comment.
Why is this condition present here (and on line 332), but not in 25 and later versions?
There was a problem hiding this comment.
Yes, @keithc-ca. That condition was removed in another PR: ibmruntimes/openj9-openjdk-jdk#1225.
Once this PR is merged, I'll immediately raise the corresponding backport to remove that condition as well.
Or
If you want I can give that change in this PR also.
There was a problem hiding this comment.
No, let's keep the three changes separate; see ibmruntimes/openj9-openjdk-jdk21#446 (comment).
There was a problem hiding this comment.
Yes, @keithc-ca , got it.
We'll keep the three changes as separate PRs. One PR has already been raised. Once that is merged, I'll raise the remaining two consecutively.
I've also resolved all the merge conflicts on the backports (for jdk21,jdk17,jdk11). Whenever you have a chance, could you please review it?
39234fb to
2117cd2
Compare
|
Hi @keithc-ca , is there anything left for me to address in this PR? |
|
Yes, this should not be merged before ibmruntimes/openj9-openjdk-jdk17#620. |
This change overrides the default securerandom.strongAlgorithms configuration used by SecureRandom.getInstanceStrong() when it runs in FIPS mode. This PR also includes two additional backports. One removes the provider-specific condition from the SecureRandom strongAlgorithms test(#1225). The other handles the Windows-specific SecureRandom strongAlgorithms defaults used by the test(#1232). Signed-off-by: Mohit Rajbhar <mohit.rajbhar@ibm.com>
7629bf7 to
bb85e28
Compare
|
Updated this also with all backports |
This change overrides the default securerandom.strongAlgorithms
configuration used by SecureRandom.getInstanceStrong() when it
runs in FIPS mode.
This PR also includes two additional backports. One removes the
provider-specific condition from the SecureRandom strongAlgorithms
test. The other handles the Windows-specific SecureRandom
strongAlgorithms defaults used by the test.
Back-ported from: #1187 #1225 #1232
Signed-off-by: Mohit Rajbhar mohit.rajbhar@ibm.com