-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Address BouncyCastle's deprecated AESFastEngine usage #16164
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
Conversation
fjacobs
commented
Nov 25, 2024
- Update AESEngine to use the default AES engine, following BouncyCastle's recommendations (see release-1-56 of changelog: https://www.bouncycastle.org/download/bouncy-castle-java/?filter=java%3Drelease-1-56).
- Migrate to the latest API 'newInstance()' method to allow removal of method level @SuppressWarnings("deprecation")
- Remove @SuppressWarnings("deprecation"), as it is not needed anymore
c1d94bf
to
41a3736
Compare
@fjacobs thanks for opening this. I have reviewed the release notes you referenced and agree that the recommendation in certain cases is to use |
@fjacobs do you have any thoughts regarding the above comment? |
41a3736
to
16fdfb1
Compare
…ngine - Update AESEngine to use the default AES engine, following BouncyCastle's recommendations (see release-1-56 of changelog: https://www.bouncycastle.org/download/bouncy-castle-java/?filter=java%3Drelease-1-56). - Migrate to the latest API 'newInstance()' method to allow removal of @SuppressWarnings("deprecation") - Remove @SuppressWarnings("deprecation")
Since this is going to be merged into Spring Security 7 (a major release) and AESFastEngine is deprecated, we should no longer support it (as it will likely be removed from Bouncy Castle)
Thanks for the PR @fjacobs! I've rebased this from main and removed the compatibility checks since this will be merged into Spring Security 7 and I'd prefer the deprecated usage to be removed entirely. This will be merged into main as soon as the build passes. Thanks again for your contribution 😄 |