gotoworld / hsd-cipher-sm Goto Github PK
View Code? Open in Web Editor NEW国产密码算法SM2,SM3,SM4
国产密码算法SM2,SM3,SM4
一会用bouncycastle,一会自我实现,感觉乱七八糟的 ?
验证过吗?
可以用于生产吗, 还是只是练手的 ?
SM2 的密钥对 privateKey ,publicKey 如何生成呢?
how to create SM2 keypair, include privateKey ,publicKey?
硬件密码介质,如密码机等,在签名过程中z值不参与,请教下基于bc库如何实现呢?
签名结果不带z值的验签,可参考
https://i.goto327.top/CryptTools/SM2.aspx
进行不带Z值签名验证。
请大佬指导下。
本项目中的国密加密依赖是15版的:
org.bouncycastle
bcpkix-jdk15on
能否把 依赖升级16版的为:
bcpkix-jdk16on
请教大神?
你用的哪个版本的bouncycastlejar包,我尝试了很多jar包都提示不存在DERObject
golang端用的国密算法库是:https://github.com/ZZMarquis/gm
对方用的java国密算法库是你的:https://github.com/gotoworld/hsd-cipher-sm
经过测试后发现:Java端SM2加密,golang无法解密,golang端SM2加密,java无法解密
排查了很久搜索到一篇文章讲解了不同点:https://my.oschina.net/u/2539854/blog/3094186
为什么SM2.java中的ecc_param换成“正式参数”就跑不过了呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.