已开启
使用cms命令进行加解密操作失败 #171
Corwin, S创建于 2025年5月16日
2025年5月16日 创建了任务
openeuler-ci-bot
2025年5月16日 评论:
2025年5月16日 评论:
Hi Corwin-Song, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-security-facility, and any of the maintainers: @wucaijun2001 , @zhujianwei001 , @mailofzxf , @robertosassu , @gwei3 , any of the committers: @zcfsite , @xu-yi-zhou


2025年5月16日 添加了
sig/sig-security-fac
标签
yixiangzhike
2025年11月21日 评论:
2025年11月21日 评论:
进行加密操作的步骤就已经失败了,查看encrypted.p7m文件内容,实际是没有密文数据的,所以后面解密操作解析不到密文数据,解密失败。
通过命令 openssl cms -encrypt -in plain.txt -recip forCMS.crt -print 可看到密文+密钥数据结构与2203-lts-sp4版本加密成功的数据结构差异很大,当前3.0.x版本实际并不支持SM2公钥加密功能,见历史issue:https://atomgit.com/src-openeuler/openssl/issues/63


环境如下:

先执行生成sm2算法的私钥和证书

然后进行执行cms命令的加解密操作,发现失败
