401 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

[OLK-5.10] crypto: crct10dif-neon - fix use via crypto_shash_digest()

已完成
任务
创建于  
2022-05-07 16:04

问题描述:

算法初始化时会报告自检错误:
自检错误

问题背景:

crct10dif-neon算法在openEuler-1.0-LTS版本使用的时候都是通过crypto_shash_update()函数调用。但是在5.10中增加了通过crypto_shash_digest()调用直接使用的场景。通过crypto_shash_digest使用时,shash的context未初始化,此时从context中读crc读出来的值未知,会导致后续crc运算出错。

解决方案:

当调用crypto_shash_digest()函数时,context中的crc应当为0。修改为直接传入0作为初始crc值。

验证方式:

插入crct10dif-ce.ko,查看算法自检结果:cat /proc/crypto | grep crct10dif-neon -A 5,其selftest结果应为passed

selftest验证结果

评论 (1)

GUO Zihua 创建了任务

Hi redtailbullet, 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: Kernel, and any of the maintainers: @YangYingliang , @pi3orama , @成坚 (CHENG Jian) , @jiaoff , @Qiuuuuu , @zhengzengkai , @刘勇强 , @Xie XiuQi

openeuler-ci-bot 添加了
 
sig/Kernel
标签
GUO Zihua 修改了描述
GUO Zihua 修改了描述
GUO Zihua 修改了描述
GUO Zihua 修改了描述
GUO Zihua 修改了标题
zhengzengkai 通过src-openeuler/kernel Pull Request !625任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助