Skip to content

Conversation

@KostasTsiounis
Copy link
Member

@KostasTsiounis KostasTsiounis commented Dec 11, 2025

This change adds attributes in the RSA service registration in the OpenJCEPlusFIPS provider to only support OAEP paddings.

It, also, update the engineSetPadding() method to only allow OAEP paddings to be set when the FIPS provider is used.

Tests are updated accordingly to skip invalid padding tests when running with OpenJCEPlusFIPS.

A temporary flag that allows the use of other paddings with OpenJCEPlusFIPS is introduced to facilitate migration of users utilizing the previous behaviour. The flag to be set to revert this behaviour is -Dcom.ibm.openjceplusfips.allowNonOAEP=true.

Signed-off-by: Kostas Tsiounis [email protected]

Copy link
Collaborator

@taoliult taoliult left a comment

Choose a reason for hiding this comment

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

LGTM

This change adds attributes in the RSA service registration
in the OpenJCEPlusFIPS provider to only support OAEP paddings.

It, also, update the engineSetPadding() method to only allow
OAEP paddings to be set when the FIPS provider is used.

Tests are updated accordingly to skip invalid padding tests
when running with OpenJCEPlusFIPS.

A temporary flag that allows the use of other paddings with
OpenJCEPlusFIPS is introduced to facilitate migration of
users utilizing the previous behaviour. The flag to be set
to revert this behaviour is -Dcom.ibm.openjceplusfips.allowNonOAEP=true.

Signed-off-by: Kostas Tsiounis <[email protected]>
Copy link
Member

@jasonkatonica jasonkatonica left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants