Skip to content

fix: upgrade Bouncy Castle provider to 1.86 (3.0.x) - #14

Merged
loong10k merged 1 commit into
feature/3.0.xfrom
fix/bcprov-1.86-3.0.x
Nov 3, 2026
Merged

loong10k merged 1 commit into
feature/3.0.xfrom
fix/bcprov-1.86-3.0.x

Conversation

@loong10k

@loong10k loong10k commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Upgrades the existing org.bouncycastle:bcprov-jdk18on runtime 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 ASCII 1 bytes encryption key, 32 ASCII a bytes authentication key, IV 00..0f, plaintext SM4历史数据 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 verify passed; dependency tree resolves bcprov-jdk18on:1.86:runtime. Awaiting remote CI and independent review before merge.

@loong10k
loong10k marked this pull request as ready for review November 3, 2026 10:03
@loong10k
loong10k merged commit 2b2d6ae into feature/3.0.x Nov 3, 2026
1 check passed
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.

1 participant