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

无法解析openssl和gmssl生成的sm2密钥,但是gmssl可以解析gmsm和openssl生成的 #182

Open
pfx546746447 opened this issue Dec 5, 2022 · 4 comments

Comments

@pfx546746447
Copy link

gmsm、openssl、gmssl 我分别生成了三对sm2 密钥

gmssl命令用这三对都可以成功加解密数据

gmsm只能用自己生成的sm2密钥对加解密

其他的就会报错

@pfx546746447
Copy link
Author

报错信息:
asn1: structure error: tags don't match (16 vs {class:0 tag:4 length:32 isCompound:false}) {optional:false explicit:false application:false private:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false} AlgorithmIdentifier @5

@fzzf678
Copy link

fzzf678 commented Jul 31, 2023

同问

@deatil
Copy link

deatil commented Oct 22, 2023

可以用下这个,https://github.com/deatil/go-cryptobin/tree/main/cryptobin/sm2 ,对库缺少的部分有完善

@wen227
Copy link

wen227 commented Dec 25, 2023

可以用下这个,https://github.com/deatil/go-cryptobin/tree/main/cryptobin/sm2 ,对库缺少的部分有完善

感谢,测试了可用

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

4 participants