Skip to content

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 <krah034@users.noreply.github.com>
Co-authored-by: Colm O hEigeartaigh <coheigea@users.noreply.github.com>
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 <krah034@users.noreply.github.com>
Co-authored-by: Colm O hEigeartaigh <coheigea@users.noreply.github.com>
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