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的加解密和签名验签需要做ASN.1编码 #40

Open
shanehou opened this issue Jul 6, 2021 · 3 comments
Open

SM2的加解密和签名验签需要做ASN.1编码 #40

shanehou opened this issue Jul 6, 2021 · 3 comments

Comments

@shanehou
Copy link

shanehou commented Jul 6, 2021

参照OSCCA Extensions For OpenPGP信息安全技术 SM2密码算法使用规范的要求,SM2的加解密和签名验签都需要做ASN.1编解码。

@Arnie97
Copy link

Arnie97 commented Feb 22, 2022

感谢提醒,看了你这一帖终于知道为啥这个库生成的结果和 sm-crypto 无法互操作了,前者格式是 C1C3C2,而后者格式是符合规范要求的 ASN.1。

@peanut-cc
Copy link
Contributor

信息安全技术 SM2密码算法使用规范

你好,那是需要怎么处理一下么,我也碰到了这个问题

@peanut-cc
Copy link
Contributor

提了一个pr来修复这个问题 #52

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

3 participants