算法初始化时会报告自检错误:
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
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论