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

给你个私钥,和sm2加密的数据,通过函数实现解密操作,谢谢! #33

Open
ygm521 opened this issue Jul 11, 2018 · 0 comments

Comments

@ygm521
Copy link

ygm521 commented Jul 11, 2018

您好!
很高兴找到这个https://github.com/jntass/TASSL。
我申请国密双证书,需要使用私钥解SM2加密数据。使用的椭圆参数是推荐的算法如下:
推荐使用素数域256位椭圆曲线。
椭圆曲线方程: y2 = x3 + ax + b。
曲线参数:
p=FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF
a=FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFC
b=28E9FA9E 9D9F5E34 4D5A9E4B CF6509A7 F39789F5 15AB8F92 DDBCBD41 4D940E93
n=FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF 7203DF6B 21C6052B 53BBF409 39D54123
Gx=32C4AE2C 1F198119 5F990446 6A39C994 8FE30BBF F2660BE1 715A4589 334C74C7
Gy=BC3736A2 F4F6779C 59BDCEE3 6B692153 D0A9877C C62A4740 02DF32E5 2139F0A0

请问有没有现成的,给你个私钥,和sm2加密的数据,通过函数实现解密操作,谢谢!
注意:私钥是16进制字串; sm2加密后数据也是16进制字串;输出解密的16进制字串。

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

1 participant