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.