Skip to content

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
coheigea pushed a commit that referenced this pull request Apr 11, 2024
Co-authored-by: RIHTARSIC Joze <joze.rihtarsic@ext.ec.europa.eu>
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