首页 > 其他 > 详细

Kernel Crypto

时间:2021-09-01 23:00:29      阅读:22      评论:0      收藏:0      [点我收藏+]

1、AES硬件加速引擎驱动代码

https://elixir.bootlin.com/linux/v5.13.13/source/drivers/crypto/geode-aes.c

https://elixir.bootlin.com/linux/v5.13.13/source/drivers/crypto/omap-aes.c

 

2、硬件加速驱动是否有配置 cra_alignmask;字段

 * @cra_alignmask: Alignment mask for the input and output data buffer. The data
 *           buffer containing the input data for the algorithm must be
 *           aligned to this alignment mask. The data buffer for the
 *           output data must be aligned to this alignment mask. Note that
 *           the Crypto API will do the re-alignment in software, but
 *           only under special conditions and there is a performance hit.
 *           The re-alignment happens at these occasions for different
 *           @cra_u types: cipher -- For both input data and output data
 *           buffer; ahash -- For output hash destination buf; shash --
 *           For output hash destination buf.
 *           This is needed on hardware which is flawed by design and
 *           cannot pick data from arbitrary addresses.

 

Kernel Crypto

原文:https://www.cnblogs.com/luop/p/15211567.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!