Skip to content
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

[SANTUARIO-617] remove mgf element in case of rsa-oaep-mgf1p #306

Merged

Conversation

jrihtarsic
Copy link
Contributor

sanuario/xml library have several option to created DOM structure or to serialize EncryptionMethod as example:

XMLCipher.newEncryptionMethod(Element element) {
XMLCipher.EncryptionMethodImpl.getEncryptionMethod()).toElement()
AbstractInternalEncryptionOutputProcessor.createKeyInfoStructure
...

And some of them does not omit MGF element in case of "rsa-oaep-mgf1p"

The purpose of the PR is to add the missing checks and provide regression tests to verify that the MGF element is omitted in the case of "rsa-oaep-mgf1p

For details see the SANTUARIO-617

Copy link
Contributor

@coheigea coheigea left a comment

Choose a reason for hiding this comment

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

LGTM, @seanjmullan can you take a look?

@coheigea coheigea requested a review from seanjmullan April 9, 2024 15:00
Copy link
Member

@seanjmullan seanjmullan left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@coheigea coheigea merged commit e1beddb into apache:main Apr 11, 2024
3 checks passed
coheigea pushed a commit that referenced this pull request Apr 11, 2024
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