Skip to content
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

SM4加密算法报错 #43

Open
QCfan opened this issue Mar 12, 2024 · 3 comments
Open

SM4加密算法报错 #43

QCfan opened this issue Mar 12, 2024 · 3 comments

Comments

@QCfan
Copy link

QCfan commented Mar 12, 2024

BurpSuite:2014.1.1
JDK Ver:17.0.5+9-LTS-191
无法添加SM4算法到processor,log显示
Cannot find any provider supporting SM4/ECB/NoPadding
Log:
cn.hutool.crypto.CryptoException: NoSuchAlgorithmException: Cannot find any provider supporting SM4/ECB/NoPadding
at cn.hutool.crypto.SecureUtil.createCipher(SecureUtil.java:1034)
at cn.hutool.crypto.CipherWrapper.(CipherWrapper.java:39)
at cn.hutool.crypto.symmetric.SymmetricCrypto.init(SymmetricCrypto.java:150)
at cn.hutool.crypto.symmetric.SymmetricCrypto.(SymmetricCrypto.java:127)
at cn.hutool.crypto.symmetric.SM4.(SM4.java:171)
at cn.hutool.crypto.symmetric.SM4.(SM4.java:146)
at cn.hutool.crypto.symmetric.SM4.(SM4.java:78)
at burp.sm4.SM4Util.setConfig(SM4Util.java:22)
at burp.sm4.SM4IntruderPayloadProcessor.(SM4IntruderPayloadProcessor.java:15)
at burp.sm4.SM4UIHandler.lambda$getPanel$1(SM4UIHandler.java:112)
...

@whwlsfb
Copy link
Owner

whwlsfb commented Mar 14, 2024

请使用openjdk,高jdk版本的oraclejdk暂时无法使用

@QCfan
Copy link
Author

QCfan commented Mar 18, 2024

请使用openjdk,高jdk版本的oraclejdk暂时无法使用

测试使用openjdk 21 LTS可以正常运行,感谢。但是能详细问一下是为什么有这种情况发生么?

@whwlsfb
Copy link
Owner

whwlsfb commented Mar 21, 2024

推测可能是oracle jdk删减了部分加解密的provider,具体原因没有进一步跟进

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

No branches or pull requests

2 participants