Skip to content

SANTUARIO-610: Fix NullPointerException in XMLCipher with BC AES GCM #288

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

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

krah034
Copy link
Contributor

@krah034 krah034 commented Mar 8, 2024

Proposed a fix for SANTUARIO-610 when BouncyCastle is at first position in Java security providers and AES GCM NoPadding is used.

When run with BouncyCastle in test class path the code is executed correctly, but fails when if (data != null) is removed from XMLCipher.

Execute with bouncycastle profile

mvn test -Dtest=org.apache.xml.security.test.dom.encryption.XMLCipherTest -P bouncycastle

@coheigea coheigea merged commit 0a15380 into apache:main Mar 11, 2024
coheigea added a commit that referenced this pull request Mar 11, 2024
…288)

* SANTUARIO-610: Fix NullPointerException in XMLCipher with BC AES GCM NoPadding

* Update XMLCipherTest.java

---------

Co-authored-by: Benjamin Krahl <[email protected]>
Co-authored-by: Colm O hEigeartaigh <[email protected]>
coheigea added a commit that referenced this pull request Dec 17, 2024
…288)

* SANTUARIO-610: Fix NullPointerException in XMLCipher with BC AES GCM NoPadding

* Update XMLCipherTest.java

---------

Co-authored-by: Benjamin Krahl <[email protected]>
Co-authored-by: Colm O hEigeartaigh <[email protected]>
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.

2 participants