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密钥协商时自定义公钥和私钥?不用sm2自己生成的。 #11

Open
yorkezhong opened this issue Nov 8, 2019 · 1 comment

Comments

@yorkezhong
Copy link

怎么在sm2密钥协商时自定义公钥和私钥?不用sm2自己生成的。

@leesonchen
Copy link

以加密为例,在main函数中定义好公钥,
byte[] pubkByte = {....};
sm02.curve.decodePoint(pubkByte);

随机数K也可以在encrypt函数中自行指定。

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