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

后端验签失败 #196

Open
tiamoliu opened this issue Nov 16, 2023 · 1 comment
Open

后端验签失败 #196

tiamoliu opened this issue Nov 16, 2023 · 1 comment

Comments

@tiamoliu
Copy link

前端用的sm-crypto包做加密加签,后端go 用的github.com/tjfoc/gmsm/sm2解密解签,
现在解密过了,但是验签没过,发现sm-crypto加签后对于R, S的包装与go中解析的形式不一样导致验签失败。
前端使用的裸签名方式

@deatil
Copy link

deatil commented Nov 17, 2023

确认前端的rs包装方式,用包里提供的方法转换下

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