提交 52338548 编写于 作者: X Xiongfeng Wang 提交者: Xie XiuQi

dm-crypt: modify dm-crypt to rely on IV generation templates

hulk inclusion
category: feature
bugzilla: 20209
CVE: NA
---------------------------

This patch modifies the dm-crypt layer to rely on the IV generation
templates for generating IV. The dm-crypt layer won't divided the 'bio'
into sectors and passes each sector to the crypto driver any more. The
dm-crypt layer creates a scatterlist array to record all the data of the
'bio' and passes this scatterlist array to the crypto driver at one
time. This crypto driver could be some accelerator driver which can
process several sectors at one time.

This patch is based on the patchset originally started by
Binoy Jayan <binoy.jayan@linaro.org>
( crypto: Add IV generation algorithms
https://patchwork.kernel.org/patch/9803469/ )
Signed-off-by: NBinoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: NXiongfeng Wang <xiongfeng.wang@linaro.org>
Reviewed-by: NZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 ea58a6cc
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册