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

Add example for Tongsuo 8.4 and master #573

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

InfoHunter
Copy link
Member

增加了可以设置user id的调用例子

Checklist
  • https://yuque.com/tsdoc 增加或更新了必要的文档
  • 增加或更新了必要的测试用例
  • 对于重要修改,更新了CHANGES文件
  • 当前修改存在对已有API参数或返回值的改变
  • 当前修改存在对旧版本功能的兼容性改变(如网络协议或密码算法)

result.sm4_ecb_dec_avg, result.sm4_cbc_dec_avg);

free(rnd_data);
return 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indices内存泄露,err时也是。

}
EVP_MD_CTX_set_pkey_ctx(mctx, sm2_ctx);
if (!EVP_DigestVerifyInit(mctx, NULL, EVP_sm3(), NULL, sm2_key_pub)
|| !EVP_DigestVerify(mctx, sig, siglen,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

返回值判断问题,可能返回负数

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

Successfully merging this pull request may close these issues.

2 participants