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

Support CMS sign/verify for SM2 Key #627

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

dongbeiouba
Copy link
Member

@dongbeiouba dongbeiouba commented Jun 24, 2024

Support CMS sign/verify for SM2 Key, rather than just ecdsa and rsa signature.
ECDSA and DSA and all provider-delivered signatures implementation is the same
by calling cms_generic_sign().

cherry-picked from openssl:

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

We need to handle signatures with and without digest algs
and we generalize the ossl_cms_ecdsa_dsa_sign() function
to other algorithms that are handled in the same way.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl/openssl#17733)
@dongbeiouba dongbeiouba requested review from InfoHunter, uudiin, wa5i, zzl360 and a team June 24, 2024 13:47
@dongbeiouba dongbeiouba changed the title enable CMS sign/verify for provider-implemented PKEYs Support CMS sign/verify for SM2 Key Jul 1, 2024
@InfoHunter InfoHunter merged commit e931fea into Tongsuo-Project:master Jul 12, 2024
94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants