You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HmacSM3Signer.hash constructs a new BouncyCastleProvider for every non-null input. This repeats expensive provider initialization on every call.
A static final BouncyCastleProvider is reused across hash calls and signer instances. Each call still creates its own MessageDigest, and null inputs still return null.
Activity
yndu13 commentedon Jan 3, 2025
Thanks for your feedback, we will consider it and reply to you as soon as possible.
mvanhorn commentedon Oct 20, 2026
HmacSM3Signer.hash constructs a new BouncyCastleProvider for every non-null input. This repeats expensive provider initialization on every call.
A static final BouncyCastleProvider is reused across hash calls and signer instances. Each call still creates its own MessageDigest, and null inputs still return null.
#994