Repository navigation
fix: upgrade Bouncy Castle provider to 1.86 (3.0.x) - #14
Merged
Merged
Conversation
loong10k
marked this pull request as ready for review
November 3, 2026 10:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades the existing
org.bouncycastle:bcprov-jdk18onruntime dependency from 1.81 to 1.86. The official 1.86 release fixes security issues still present in 1.85. Current application paths use Hutool AES, SM4 and HMAC; direct PBE or NTRU use has not been established.Adds SM4 round-trip, authenticated tamper-rejection, and decryption of a fixed ciphertext generated on the original 1.81 dependency. Fixture conditions: Hutool crypto, JDK 21, Jackson 2, SM4/CBC/PKCS5Padding, HMAC-SHA256, key ID
bc181, 16 ASCII1bytes encryption key, 32 ASCIIabytes authentication key, IV00..0f, plaintextSM4历史数据as a JSON string. The MPE1 format and runtime scope remain unchanged.Local verification: JDK 21, Maven 4.0.0-rc-5, full
sh ./mvnw -o -B clean verifypassed; dependency tree resolvesbcprov-jdk18on:1.86:runtime. Awaiting remote CI and independent review before merge.