-
Notifications
You must be signed in to change notification settings - Fork 67
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
国密算法p7签名报错问题 #303
Comments
这个是内部函数,请提供测试用例,谢谢! |
|
哪里有问题?除了
|
哦,是因为我这边的项目在调用的时候,对crypto.Hash=0 进行了注册,所以在signData()签名时在 hasher.Available()结果为true,所以报错了,这边去掉注册后就成功了。感谢答疑。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
p7签名使用sm2算法时, 红框处hasher 为 crypto.Hash(0), hasher.New()会报错,麻烦修复一下,谢谢。

The text was updated successfully, but these errors were encountered: