Skip to content

fix: upgrade Bouncy Castle provider to 1.86 (main) - #11

Merged
loong10k merged 1 commit into
mainfrom
fix/bcprov-1.86-main
Nov 3, 2026
Merged

loong10k merged 1 commit into
mainfrom
fix/bcprov-1.86-main

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, including CVE-2026-17508 and CVE-2026-18036. The project uses 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 1.81 ciphertext. The fixture was generated with bcprov-jdk18on 1.81, Hutool crypto, JDK 21, Jackson 2, SM4/CBC/PKCS5Padding, HMAC-SHA256, key ID bc181, 16 ASCII 1 bytes as encryption key, 32 ASCII a bytes as authentication key, IV 00..0f, and plaintext SM4历史数据 serialized as a JSON string. The MPE1 envelope format and runtime scope are unchanged.

Local verification: JDK 21, Maven 3.9.16, mvn -B clean verify passed; mvn -o -B -pl mybatis-plus-enhance-extension -am dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on 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:02
@loong10k
loong10k merged commit b85b397 into main 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